Skip to content

First NestJS project powered by TypeScript (Simple CRUD)

License

Notifications You must be signed in to change notification settings

BaseMax/FirstNestTS

Repository files navigation

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

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

License

Nest is MIT licensed.