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:prod
localhost:3000/products
GET: get all available productslocalhost:3000/products/{id}
GET: get product by ID available productslocalhost:3000/products
POST: 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