A NestJS backend application, for online school work. It allows creating and modifying subjects, assigning them students and teachers, creating and previewing assignments and student submissions, and saving and downloading their respective files.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Create a .env.development or .env.production using this template, based on your stage.
# Database
DATABASE_HOST=
DATABASE_PORT=
DATABASE_USERNAME=
DATABASE_PWD=
DATABASE_NAME=
# JWT
JWT_SECRET=
JWT_SECRET_EXPIRES=
JWT_REFRESH_SECRET=
JWT_REFRESH_SECRET_EXPIRES=
#Other
CORS_ORIGIN=
Route documentation available with SwaggerUI on port 8080.
- users/
- auth/
- subjects/
- assignments/
- submissions/
- me/
- Registration and login
- Creating and editing users
- Creating and editing subjects and assigning students and teachers
- Creating and editing assignments
- Creating and editing submissions
- Saving and downloading files