https://github.com/cuongndc9/node-express-restful
🗡️ Build a RESTful API using Node and Express.
https://github.com/cuongndc9/node-express-restful
103cuong express expressjs node nodejs rest-api restful-api
Last synced: 10 months ago
JSON representation
🗡️ Build a RESTful API using Node and Express.
- Host: GitHub
- URL: https://github.com/cuongndc9/node-express-restful
- Owner: cuongndc9
- License: mit
- Created: 2019-02-15T17:35:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-19T14:41:51.000Z (over 7 years ago)
- Last Synced: 2025-01-21T21:32:33.815Z (over 1 year ago)
- Topics: 103cuong, express, expressjs, node, nodejs, rest-api, restful-api
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-express-restful
> 🗡️ Build a RESTful API using Node and Express.
## Install
Install dependencies
```
$ npm i
```
Create `.env` file
```
MONGODB_URI=
```
## Usage
One line to run
```
$ npm start
```
## API
| Route | HTTP method | Description |
|------------------|-------------|-----------------------------|
| /api/cats | `GET` | Get all the cats. |
| /api/cats | `POST` | Create a cat. |
| /api/cats/:catId | `GET` | Get a single cat. |
| /api/cats/:catId | `PUT` | Update a cat with new info. |
| /api/cats/:catId | `DELETE` | Delete a cat. |
## License
