NestJS JWT API boilerplate.
Install yarn packages before continue
$ yarn
Ask other developers to share .development.env
. For security reasons this file is not versioned.
- This is will make a new PostgreSQL running in the standard port
5432
- Please shutdown any previous conflicting PostgreSQL instances before starting this
$ docker-compose up
Check the database is up
$ docker logs -f postgres
Go to http://localhost:5433 to access pgadmin UI.
$ yarn start:dev
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
The documentation offers two options: Swagger to inspect the API endpoints and Compodoc to inspect the application components.
After start the app, access /swagger
route in order to use the playground which allows manually tests in the API routes.
It will also provide all the models and routes available in the application.
To generate the project documentation use yarn doc
, it will generate the documentation usually on http://localhost:8080, it
contains the core of all the application components.
- Add logger
- Check if environment variables are loading correctly
- Add migrations
- Add healthcheck to get database status
- Make this app production ready
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.