A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
A notes taking API example powered with Nest.
This example provides :
- A basic Rest API
- Unit-testing
- Authentication with role guards
- Form validation
- Postgres DB integration
- Environments configuration
- Swagger and Compodoc integration
- CORS and headers securities (with helmet)
$ npm install
# Launching docker container
$ docker-compose -f docker/postgres.yml up -d
# Using Initialisation script (before this, you must run the app once to create tables)
$ psql -H localhost -P 5432 -U postgres -d noteDB -f docker/postgres_init.sql
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
The app provides a Swagger client to try the note REST API at http://localhost:3000/swagger
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
# Compodoc
$ npx compodoc -p tsconfig.json -s
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.