Backend for an educational scheduling system built with NestJS and Bun.
Frontend repository:
https://github.com/Eltarchik/schedule
- NestJS
- Bun
- Prisma
- PostgreSQL
- JWT (access & refresh)
- S3 (Yandex Cloud Object Storage via AWS SDK)
bun installCreate a .env file in the project root:
NODE_ENV=development
COOKIE_DOMAIN=localhost
S3_BUCKET=schedule-test-bucket
AWS_ACCESS_KEY_ID=your_access_key
AWS_SECRET_ACCESS_KEY=your_secret_key
AWS_S3_REGION=ru-central1-a
JWT_SECRET=your_jwt_secret
JWT_ACCESS_TOKEN_TTL=2h
JWT_REFRESH_TOKEN_TTL=7d
PORT=4242
DATABASE_URL=postgresql://postgres:password@localhost:5432/schedule?schema=publicDo not commit real credentials.
bun devServer runs on:
http://localhost:4242
Scalar API documentation is available at:
http://localhost:4242/docs
bun run build
bun start- Authentication & authorization (JWT)
- Access / Refresh tokens
- Cookie-based auth
- S3 avatar storage
- Modular architecture with interconnected entities