First Nest TS (TypeScript)
First NestJS project powered by TypeScript (Simple CRUD)
Routes
Get All
GET http://localhost:3000/products/
Get one
GET http://localhost:3000/products/put-id-here/
Update one
PATCH http://localhost:3000/products/put-id-here/
{
"title": "My new title",
"price": 1700
"description": "This is my updated product",
}
Delete one
DELETE http://localhost:3000/products/put-id-here/
Insert a new
POST http://localhost:3000/products/
{
"title": "My title",
"price": 1000
"description": "This is first product",
}
Output:
{
"id": "0.23849951866423913"
}
Installation
You can use yarn
or npm
if you prefer npm.
$ yarn install
Running the app
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
Test
# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:cov
A progressive Node.js framework for building efficient and scalable server-side applications.
Description
Nest framework TypeScript starter repository.
License
Nest is MIT licensed.