/nestjs-arch

NestJs Architecture explained

Primary LanguageTypeScript

What this Repo is for ?

It contains source code for tutorial published at https://medium.com/@mansha99/understanding-nestjs-architecture-f257d054211d

What it demonstrates?

Creating Better Architecture Apps using NestJS


Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

URLs

# Hello World
http://127.0.0.1:3000/simple/convert/12
# Using Service
http://127.0.0.1:3000/service/convert/123
# Using Validation Pipe
http://127.0.0.1:3000/smart/convert/12,00
# Using validation Pipe and Interceptors
http://127.0.0.1:3000/intercept/convert/12,00

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

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.

Stay in touch

License

Nest is MIT licensed.