https://github.com/ravener/nodejs-restapi
A basic rest api using Expressjs, Express Validator and Sequelize.
https://github.com/ravener/nodejs-restapi
api express expressjs nodejs postgresql rest sequelize sql
Last synced: about 1 month ago
JSON representation
A basic rest api using Expressjs, Express Validator and Sequelize.
- Host: GitHub
- URL: https://github.com/ravener/nodejs-restapi
- Owner: ravener
- License: mit
- Created: 2020-05-23T11:34:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-23T11:34:50.000Z (about 6 years ago)
- Last Synced: 2025-06-21T10:43:33.031Z (12 months ago)
- Topics: api, express, expressjs, nodejs, postgresql, rest, sequelize, sql
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node.js REST API
A basic rest api using Expressjs, Express Validator and Sequelize.
## Setup
Copy `.env.example` to `.env` and fill in the fields as needed.
```sh
$ npm install
$ node app.js
```
**Endpoints:**
```
GET /users
GET /users/:id
POST /users
PUT /users/:id
DELETE /users/:id
```
POST body for creating is `{ "name": "some name", "age": 17, "email": "email@gmail.com" }` All fields optional except for `name`, When updating with put all fields are optional.
## License
Released under the [MIT License](LICENSE)