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
- Host: GitHub
- URL: https://github.com/harastaivan/node-rest-api
- Owner: harastaivan
- License: mit
- Created: 2018-06-22T19:04:51.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-24T12:24:39.000Z (about 8 years ago)
- Last Synced: 2025-01-11T23:37:53.270Z (over 1 year ago)
- Topics: node, nodejs, rest-api, restful-api
- Language: JavaScript
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)