Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/basemax/firstnestts
- Owner: BaseMax
- License: gpl-3.0
- Created: 2022-02-17T16:29:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-19T10:40:12.000Z (3 months ago)
- Last Synced: 2025-02-04T07:15:38.095Z (6 days ago)
- Topics: crud, javascript, js, nest, nest-typescript, nestjs, nestjs-backend, nestts, ts, typescript
- Language: TypeScript
- Homepage:
- Size: 150 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```---
[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.
## Description
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
## License
Nest is [MIT licensed](LICENSE).