-
install node-modules
npm install
-
copy .env.example
-
set databases
-
Run app with node.js
node app.js
-
open postman
// menampilkan data .get http://localhost:8000/product
// insert data .push http://localhost:8000/product
// delete data .delete http://localhost:8000/product/id
// update data .put http://localhost:8000/product/id
//search name .get http://localhost:8000/product?searcrh=
// get page by limit .get http://localhost:8000/product?limit=10&page=2
//sort .get http://localhost:8000/product?field=id&sort=asc