https://github.com/kjenney/express-sequelize-api
Running An Express API with Sequelize and Postgres
https://github.com/kjenney/express-sequelize-api
Last synced: 11 months ago
JSON representation
Running An Express API with Sequelize and Postgres
- Host: GitHub
- URL: https://github.com/kjenney/express-sequelize-api
- Owner: kjenney
- Created: 2019-06-07T15:22:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T06:53:07.000Z (about 3 years ago)
- Last Synced: 2025-01-07T20:12:54.726Z (12 months ago)
- Language: JavaScript
- Size: 123 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sequelize-express-api
Taken from
https://arjunphp.com/build-restful-api-using-node-express-sequelize/
and
https://github.com/sequelize/express-example
```
sequelize model:create --name Todo --attributes title:string,description:string
```
## Create a TODO
```
curl -X POST -H "Content-Type: application/json" -d '{"title":"create a rest client","description":"create it with node js"}' "http://localhost:8080/todos"
```
## List TODO's
```
curl http://localhost:8080/todos/
```