NestJS project containing a small API for events with attendees and users.
- Docker-compose.yml with container for MySql, PostGres and Adminer
- Controllers and services with repositories for CRUD operations
- Generating JWT on registration or login
- Authentication with JWT
- Authorization with Guards
- TypeORM
- Interceptors and Data serialization
- Data validation
- OneToMany and OneToOne relation
- Filtering, sorting and paginating data with QueryBuilder
- Unit tests with Jest and Postman collection for API testing
$ npm install$ docker-compose up -d# env
create .env file inside the root folder and copy content of .env.dev into .env# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
# Postman
Import the postman collection and DEV environment into Postman and execute requestsA progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.