Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nkosi-tauro/product-api

A Simple CRUD API built with NestJS
https://github.com/nkosi-tauro/product-api

mongodb mongoose nestjs typescript

Last synced: 6 days ago
JSON representation

A Simple CRUD API built with NestJS

Awesome Lists containing this project

README

        

Product Api


Github top language

Github language count

Repository size

License



## :dart: About ##

A Simple CRUD API built with NestJS

## :sparkles: Features ##

:heavy_check_mark: User can GET/POST/PATCH/DELETE Products

## :rocket: Technologies ##

The following tools were used in this project:

- [Nest.js](https://nestjs.com/)
- [Node.js](https://nodejs.org/en/)
- [MongoDB](https://cloud.mongodb.com/)

## :white_check_mark: Requirements ##

Before starting :checkered_flag:, you need to have [Git](https://git-scm.com) and [Node](https://nodejs.org/en/) installed.

## :checkered_flag: Starting ##

```bash
# Clone this project
$ git clone https://github.com/nkosi-tauro/product-api

# Access
$ cd product-api

#MongoDB
$ update connection string to your DB

# Install dependencies
$ npm install

# Run the project
$ npm start

# The server will initialize in the
```

## :checkered_flag: Usage ##
**Using Postman** or a service of your choice
```bash
# POST new Product
$ http://localhost:3000/products
-> Body -> JSON
{
"title": "New Title",
"description": "New Description",
"price": 13000
}

# GET All Products
$ http://localhost:3000/products

# GET Single Product
http://localhost:3000/products/:id

# PATCH Product
$ http://localhost:3000/products/:id
-> Body -> JSON
{
"title": "New Udpated Title",
"description": "New Udpated Description",
"price": 13000
}

# Delete Single Product
http://localhost:3000/products/:id

```

## :memo: License ##

This project is under license from MIT. For more details, see the [LICENSE](LICENSE.md) file.

Made with :heart: by Nkosilathi Tauro

 

Back to top