Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/basemax/firstnestts

First NestJS project powered by TypeScript (Simple CRUD)
https://github.com/basemax/firstnestts

crud javascript js nest nest-typescript nestjs nestjs-backend nestts ts typescript

Last synced: about 22 hours ago
JSON representation

First NestJS project powered by TypeScript (Simple CRUD)

Awesome Lists containing this project

README

        

## 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/`

```json
{
"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/`

```json
{
"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.

```bash
$ yarn install
```

## Running the app

```bash
# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod
```

## Test

```bash
# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov
```

---


Nest Logo

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest

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](https://github.com/nestjs/nest) framework TypeScript starter repository.

## License

Nest is [MIT licensed](LICENSE).