Skip to content

SujithThirumalaisamy/algorithmic-arena

 
 

Repository files navigation

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
pnpm 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
pnpm dlx turbo db:migrate && yarn install
  1. Start Dev
pnpm 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
pnpm 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
pnpm dlx turbo db:migrate && yarn install
  1. Start Dev
pnpm 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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 84.0%
  • CSS 4.9%
  • JavaScript 3.8%
  • Java 2.2%
  • Dockerfile 2.0%
  • C++ 1.5%
  • Other 1.6%