The CIAP-MVP Git repository for Team B.
- Edit as neccesary ,commit to main only when absolutely neccesary
- containerize your apps, keep clear and concise commit e.g
git commit -m feat: your-commit - Ensure you use separate ports to prevent port conflicts e.g backend uses
localhost:3000frontend should uselocalhost:4000
backend/contains the NestJS API (auth, users, sessions, etc.)frontend/contains the Next.js client appML/contains ML-related work
Quick path to get the API running locally so you can call it from the frontend.
cd backend
pnpm install
cp .env.example .env
pnpm run db:migrate
pnpm run start:devDefaults:
- API base: http://localhost:3000
- Swagger docs: http://localhost:3000/api-docs
- Health check: http://localhost:3000/health
Point your frontend API base URL to http://localhost:3000.
If the frontend needs auth flows, see the API docs in backend/README.md for routes and JWT/OAuth details.
POST /auth/signupPOST /auth/loginPOST /auth/refreshPOST /auth/logoutGET /auth/verify
For the full list and schemas, use Swagger at /api-docs.
pnpm run db:seed- Uses
pnpmonly. - Access tokens use
ES256; refresh tokens useES512.
cd frontend
yarn install
yarn devRuns on localhost:4000 by default.
- Backend setup and usage: backend/README.md
- Backend structure: backend/docs/project-structure.md