NodeJS and Express for CRUD API with Sequelize and Database Postgre SQL
- Clone repo github
- Install library dependency with command
$ npm install- Install nodemon (optional) with command
$ npm install nodemon --save--dev- Running application with command
$ npm startcurl --location 'http://localhost:8082/api/postings' \
--header 'Content-Type: application/json' \
--data '{
"title": "posting number 3",
"description": "posting testing number 3",
"published": false
}'curl --location 'http://localhost:8082/api/postings'curl --location 'http://localhost:8082/api/postings/1'curl --location --request PUT 'http://localhost:8082/api/postings/2' \
--header 'Content-Type: application/json' \
--data '{
"title": "posting number 2 updated",
"description": "posting testing number 2 updated lagi",
"published": true
}'curl --location 'http://localhost:8082/api/postings/published'curl --location --request DELETE 'http://localhost:8082/api/postings/2'curl --location --request DELETE 'http://localhost:8082/api/postings'Tekan Ctrl + C
https://www.postman.com/rochiyat-coding/workspace/share-api/collection/4389128-d42d769f-ad27-4e97-8677-0ab9b1b0155b?action=share&creator=4389128