Skip to content

Latest commit

 

History

37 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

ciap-mvp-b

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:3000 frontend should use localhost:4000

What is this repo

  • backend/ contains the NestJS API (auth, users, sessions, etc.)
  • frontend/ contains the Next.js client app
  • ML/ contains ML-related work

Backend usage (for frontend & ML)

Quick path to get the API running locally so you can call it from the frontend.

1) Start the API

cd backend
pnpm install
cp .env.example .env
pnpm run db:migrate
pnpm run start:dev

Defaults:

2) Configure frontend

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.

3) Common endpoints

  • POST /auth/signup
  • POST /auth/login
  • POST /auth/refresh
  • POST /auth/logout
  • GET /auth/verify

For the full list and schemas, use Swagger at /api-docs.

4) Need sample data?

pnpm run db:seed

5) Notes

  • Uses pnpm only.
  • Access tokens use ES256; refresh tokens use ES512.

Frontend usage

cd frontend
yarn install
yarn dev

Runs on localhost:4000 by default.

More docs

About

The CIAP-MVP Git repository for Team B

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages