A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript Backend API example. Test API calls on this simple backend example using NodeJS.
$ npm install# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prodlocalhost:3000/productsGET: get all available productslocalhost:3000/products/{id}GET: get product by ID available productslocalhost:3000/productsPOST: add a new product with JSON object in Body:{title: string, description: string, price: number}localhost:3000/products/{id}DELETE: delete product by IDlocalhost:3000/products/{id}PATCH: update product, with JSON object in Body (any):{title: string, description: string, price: number}
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov