
- TypeScript
- ESLint
- Mocha
- TypeORM
- Stryker
$ npm install
| Command | Description |
|---|---|
npm start |
Build and start application |
npm run dev |
Start application in development mode with HMR (webpack) |
npm run dev:nd |
Start application in debug mode (node-dev) |
npm run dev:wd |
Start application in debug mode (webpack) |
npm test |
Run all tests |
npm run test:r |
Run unit tests |
npm run test:w |
Run unit tests in watch mode |
npm run tscheck:w |
Run TypeScript checks in watch mode |
npm run tsclint:w |
Run TypeScript more stricter checks in watch mode |
npm run eslint:w |
Run ESLint in watch mode |
npm run eslint:fix |
Run ESLint in fix mode |
npm run lint:w |
Run all linting commands in watch mode |
npm run test:m |
Run mutation tests |
| Folder/file | Description |
|---|---|
src/config.ts |
Configuration file |
src/server.ts |
Main file, starts server |
src/app |
Application files: controllers, services, entities, etc. grouped by feature |
src/components |
Shared components: helpers, decorators, pipes, transformers, interceptors, middlewares, etc. |
src/scripts |
Scripts which runs from cli to support database, cronjob, etc. |
src/migrations |
TypeORM migrations |
Database seed example:
npx ts-node src/scripts seed
set TYPEORM_CONNECTION=mongodb
set TYPEORM_DATABASE=nest-typescript-starter
set TYPEORM_CONNECTION=sqlite
set TYPEORM_DATABASE=test
npm run dev:wd -- --env.devtool=inline-cheap-source-mapDebug with webpack and HMR (show srouces as transformed code)node -r ts-node/register/transpile-only --inspect src/database/scripts.ts migrate
| Value | Valid stacktrace | Source updates | Breakpoints | Rebuild | Quality |
|---|---|---|---|---|---|
cheap-eval-source-map |
No | Yes | No | ++ | transformed code |
cheap-module-source-map |
Yes | Yes | Yes | - | original source |
inline-cheap-module-source-map |
Yes | Yes | Yes | - | original source |
inline-cheap-source-map |
No | Yes | Yes | o | transformed code |
cheap-source-map |
No | Yes | Yes | o | transformed code |
inline-source-map |
Yes | Yes | Yes | -- | original source |
eval-source-map |
? | ? | ? | + | original source |
source-map |
Yes | Yes | Yes | -- | original source |
- https://github.com/nestjs/nest/tree/master/examples
- GDG DevFest 2017 (Presentation) - https://github.com/Caballerog/devfestmalaga2017
- Router Module For Nestjs Framework - https://github.com/shekohex/nest-router
- TypeORM where like expression - https://gitter.im/typeorm/typeorm?at=5a2035af232e79134df08c65
- Add the most common Express middlewares to your Nest app with one line - https://github.com/wbhob/nest-middlewares
- Level up your Node.js application with Nest: Angular sugar on the server - http://ng-atl.org/workshops/level-up-your-node-js-application-with-nest-angular-sugar-on-the-server
- New Stack on the Market to beat them all MANT (MongoDB Angular NestJS TypeScript) - https://github.com/vladotesanovic/mant
- Microservices example - https://github.com/james7272/nestjs-hybrid-example
- nest-graphql-apollo - https://github.com/kamilkisiela/nest-graphql-apollo
- nest-graphql-mongodb - https://github.com/iamclaytonray/nest-graphql-mongodb
- nestjs-graphql - https://github.com/adrien2p/nestjs-graphql
- graphql-js/issues/19 - graphql/graphql-js#19
- graph-type-orm-nest-example - https://github.com/partyka95/graph-type-orm-nest-example
- nest-mailer - https://github.com/partyka95/nest-mailer
- ngrx-nest - https://github.com/derekkite/ngrx-nest
- Simple application demonstrating the basic usage of permissions - https://github.com/rucken/core-nestjs
- Nest + Sequelize + jwt - https://github.com/adrien2p/nestjs-sequelize-jwt
- Awesome Nest - https://github.com/juliandavidmr/awesome-nest
- Learn the nestjs framework in 30 days - https://github.com/m24927605/Nestjs30Days
- A simple web application - https://github.com/chanlito/simple-todos
- A collection of useful modules and opinionated to use with Nest framework - https://github.com/chanlito/nestjs-extensions
- A simple application demonstrating the basic usage of permissions - https://github.com/rucken/core-nestjs
- Opinionated Framework built on top of NestJS and TypeORM - https://github.com/mentos1386/lynx
- This is a Bull module for Nest - https://github.com/fwoelffel/nest-bull
- Hybrid apps have embedded microservices - https://github.com/james7272/nestjs-hybrid-example/
- I-know-nest repository - https://github.com/cojack/i-know-nest
- A Bull module for Nest framework - https://github.com/fwoelffel/nest-bull
- https://github.com/caiya/graphql-nestjs-typeorm
- Scaffold quickly your next TypeScript API with this opinionated NestJS template crafted for Docker environments - https://github.com/Saluki/nestjs-template
- Authentication and Authorization example for Nest.js TypeScript Framework - https://github.com/neoteric-eu/nestjs-auth
- Another example of chiny app - https://github.com/notadd/notadd
- Another example of nest - https://github.com/bojidaryovchev/nest-angular
- Blog made with nestJS - https://github.com/bashleigh/nestjs-blog TODO
- TypeORM: Mongoose: Clarify what exactly need todo
- https://github.com/nestjs/mongoose
- Health endpoint