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

https://github.com/harastaivan/node-rest-api

RESTful API made with NodeJS
https://github.com/harastaivan/node-rest-api

node nodejs rest-api restful-api

Last synced: about 2 months ago
JSON representation

RESTful API made with NodeJS

Awesome Lists containing this project

README

          

# NodeJS REST API

RESTful API made with NodeJS

Learning to make NodeJS RESTful API with [this](https://www.youtube.com/playlist?list=PL55RiY5tL51q4D-B63KBnygU6opNPFk_q) video list.

---

## Install

1. Fork this repo.

2. Install [NodeJS](https://nodejs.org/) which also contains `npm` package manager.

3. Run `git clone git@github.com:your-username/node-rest-api.git`.

4. Run `cd node-rest-api/`.

5. Run `npm install`.

6. Run `npm start`.

7. Now the API is running and you can make requests to it.

## Dependencies

### [Express](https://expressjs.com)

With a myriad of HTTP utility methods and middleware, creating a robust API is quick and easy.

### [Morgan](https://www.npmjs.com/package/morgan)

HTTP request logger middleware for node.js working great with Express.

### [Nodemon](http://nodemon.io/)

Monitor for any changes in your node.js application and automatically restart the server - perfect for development

## Features

### `/products` requests

- GET request to /products
- POST request to /products
- GET request to /products/{id}
- PATCH request to /products/{id}
- DELETE request to /prodcuts/{id}

### `/orders` requests

- GET request to /orders
- POST request to /orders
- GET request to /orders/{id}
- DELETE request to /orders/{id}

## License

[MIT](https://github.com/harastaivan/node-rest-api/blob/master/LICENSE)