A progressive Node.js framework for building efficient and scalable server-side applications.
This is a code challenge using the NestJS framework, with Mongoose/MongoDB as database of choice. My approach was to use domain-driven development for the organization/maintainability of this project and to keep things encapsulated.
The instructions proposed the following:
- Use NestJS ✅
- Create CRUD for Tasks following specified rules for each of the endpoints ✅
- Error handling and data validation for the APIs ✅
- Documentation (Swagger) ✅
- Implement integration and unit tests (Optional) ✅
- Deploy the API to a cloud provider (Optional)✅
- Bonus: Dockerize the application ✅
The project is deployed in Render using Docker here.
$ yarn install
- Copy the .env.dist file
- Set your environment variables
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
# Docker mode
$ yarn run start:docker
# unit tests
$ yarn run test:unit
# e2e tests
$ yarn run test:e2e
# complete test coverage
$ yarn run test
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.