Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 1.15 KB

File metadata and controls

57 lines (45 loc) · 1.15 KB

Backend Documentation

Commands

Development

bun run dev

Starts the server with hot reload on port 3001.

Production

bun run start

Database

bun run migrate    # Run database migrations
bun run seed       # Seed database with sample data

User Management

bun run create-user

Interactive CLI to create a new user.

Testing

bun test              # Run all tests
bun test --watch      # Run tests in watch mode

See TESTING.md for detailed testing documentation.

Docker

Start the backend with PostgreSQL:

docker-compose up -d

Stop services:

docker-compose down

API Endpoints

  • POST /api/auth/register - Register new user
  • POST /api/auth/login - Login user
  • GET /api/users/profile - Get user profile
  • PUT /api/users/profile - Update user profile
  • GET /api/evaluations - Get user evaluations
  • POST /api/evaluations/ticked-requirements - Save ticked requirements
  • POST /api/evaluations/criteria-notes - Save criteria notes

All endpoints except /auth/* require JWT authentication via Authorization: Bearer <token> header.