A progressive Node.js framework for building efficient and scalable server-side applications.
GraphQL Todo API built on NestJS.
- Authentication
- Everything tested with Unit and E2E tests with Jest and Supertest
- Fully typed with TypeScript
- PostgreSQL + TypeORM
- ESLint + Prettier for static code analysis and code formatting
- API Hosted on Heroku
- Create
.envanddocker.envfiles in project's root, following.env.distanddocker.env.disthints (I considerJWT_ACCESS_TOKEN_EXPIRATION_TIME=1dandJWT_REFRESH_TOKEN_EXPIRATION_TIME=1wnice defaults) - To edit code, it's recommended to install ESLint, Prettier and Jest IDE extensions
- Install Docker. Server, DB and DB admin easily runs on a Docker container for ease of use and isolation
# server defaults to localhost:3000
$ docker-compose upConfigure in Heroku, add Heroku Postgres add-on and add config vars in Settings.
- If any changes to entities were made, you should run migrations with
npm run typeorm:generate-migrationsandnpm run typeorm:run-migrations.
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
# e2e test coverage
$ npm run test:e2e:covNest 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.