https://github.com/probablyarth/workflows-test
https://github.com/probablyarth/workflows-test
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/probablyarth/workflows-test
- Owner: probablyArth
- Created: 2024-06-23T09:30:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-23T21:16:48.000Z (almost 2 years ago)
- Last Synced: 2025-02-25T03:23:59.912Z (over 1 year ago)
- Language: TypeScript
- Size: 30.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
docker-compose up -d
```
3. Install dependencies
```bash
yarn install
```
4. Copy env files
```bash
cp apps/web/.env.example apps/web/.env
cp packages/db/.env.example packages/db/.env
```
5. Update the mount path in the ``apps/web/.env``
6. Migrate Database and install local package
```bash
npx turbo db:migrate && yarn install
```
7. Start Dev
```bash
yarn dev
```
---
### Own Configuration
1.Configure the judge0.conf
- Update the POSTGRES and REDIS configurations based on your local databases
2. Update the ``##YOUR_LOCAL_PATH_TO_PROBLEMS_DIR##`` in the docker-compose file
3. Start only judge0 service
```bash
docker-compose up server workers -d
```
4. Install dependencies
```bash
yarn install
```
5. Copy env files and configure with the same conf you updated in the judge0
```bash
cp apps/web/.env.example apps/web/.env
cp packages/db/.env.example packages/db/.env
```
6. Update the mount path in the ``apps/web/.env``
7. Migrate Database and install local package
```bash
npx turbo db:migrate && yarn install
```
8. Start Dev
```bash
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.