A progressive Node.js framework for building efficient and scalable server-side applications.
This project is a straightforward API designed to meet essential functionalities, including:
Authentication Module: Implements secure user authentication and authorization.
Users Module with Address Book: Manages user data and includes a convenient address book feature.
Postman Collection: A comprehensive Postman collection is provided, simplifying API testing and ensuring seamless integration.
src
|-- app.controller.spec.ts
|-- app.controller.ts
|-- app.module.ts
|-- app.service.ts
|-- auth
| |-- auth.controller.ts
| |-- auth.module.ts
| |-- auth.service.spec.ts
| |-- auth.service.ts
| |-- dto
| | |-- change-pwd-auth.dto.ts
| | |-- forgot-pwd-auth.dto.ts
| | |-- index.ts
| | |-- login-auth.dto.ts
| | `-- reset-pwd-auth.dto.ts
| `-- strategies
| |-- index.ts
| `-- jwt.strategy.ts
|-- common
| |-- db
| | `-- mongo.service.ts
| |-- decorators
| | `-- roles.decorator.ts
| |-- envs
| |-- guards
| | |-- index.ts
| | |-- jwt.guard.ts
| | `-- roles.guard.ts
| `-- types
| |-- index.ts
| |-- jwtPayload.ts
| `-- userModel.ts
|-- main.ts
|-- providers
| `-- email
| |-- email.module.ts
| |-- email.service.spec.ts
| `-- email.service.ts
`-- user
|-- dto
| |-- additional-user.dto.ts
| |-- create-user.dto.ts
| |-- index.ts
| `-- update-user.dto.ts
|-- entities
| `-- user.entity.ts
|-- user.controller.ts
|-- user.module.ts
|-- user.service.spec.ts
`-- user.service.ts
$ npm install
# 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
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.