rahul5g3d/fair-wheel
0
Fair Task Assignment & Scoring Wheel System
Run
docker compose up -d
npm install
npm run seed
npm run devMongoDB Atlas
To use Atlas instead of local MongoDB, set backend/.env:
MONGO_URI=mongodb+srv://<username>:<password>@<cluster-url>/fair-wheel?retryWrites=true&w=majorityThen run:
npm run seed
npm run devFrontend: http://localhost:5173
Backend: http://localhost:5001
Deploy
Backend service:
npm install
npm run build --workspace backend
npm run seed
npm run start --workspace backendBackend environment:
NODE_ENV=production
PORT=5001
MONGO_URI=mongodb+srv://<username>:<password>@<cluster-url>/fair-wheel?retryWrites=true&w=majority
CLIENT_ORIGIN=https://your-frontend-domain.com
JWT_ACCESS_SECRET=<long-random-secret>
JWT_REFRESH_SECRET=<another-long-random-secret>
ACCESS_TOKEN_TTL=15m
REFRESH_TOKEN_TTL=7d
ADMIN_USERNAME=admin
ADMIN_PASSWORD=<strong-admin-password>Frontend service:
npm install
npm run build --workspace frontendFrontend environment:
VITE_API_URL=https://your-backend-domain.comDefault admin:
username: admin
password: set by `ADMIN_PASSWORD` in `backend/.env`