haddercone / algorithmic-arena

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local Development Setup

All Sevices withing Docker

NOTE: Do not update any of the ENV files for this particular configuration. ( Except the mount path for problems )

  1. Update the ##YOUR_LOCAL_PATH_TO_PROBLEMS_DIR## in the docker-compose file
  2. Start the services
docker-compose up -d
  1. Install dependencies
yarn install
  1. Copy env files
cp apps/web/.env.example apps/web/.env
cp packages/db/.env.example packages/db/.env
  1. Update the mount path in the apps/web/.env
  2. Migrate Database and install local package
npx turbo db:migrate && yarn install
  1. Start Dev
yarn dev

Own Configuration

1.Configure the judge0.conf

  • Update the POSTGRES and REDIS configurations based on your local databases
  1. Update the ##YOUR_LOCAL_PATH_TO_PROBLEMS_DIR## in the docker-compose file
  2. Start only judge0 service
docker-compose up server workers -d
  1. Install dependencies
yarn install
  1. Copy env files and configure with the same conf you updated in the judge0
cp apps/web/.env.example apps/web/.env
cp packages/db/.env.example packages/db/.env
  1. Update the mount path in the apps/web/.env
  2. Migrate Database and install local package
npx turbo db:migrate && yarn install
  1. Start Dev
yarn dev

If you use JUDGE0 in windows, change the mount path to have the \ instead of / for the mounting of judge0.conf and mounting of problems.

About


Languages

Language:TypeScript 84.1%Language:CSS 4.9%Language:JavaScript 3.8%Language:Java 2.2%Language:Dockerfile 1.8%Language:C++ 1.5%Language:Rust 1.5%Language:Handlebars 0.1%