NPD: Nodejs(Express+Sequelize+Babel+Jest)+Postgres+Docker
If you want to test this repo by Docker, you can use this:
https://github.com/mehranhamedani/npd-docker
Otherwise, you can do the following steps:
$ git clone https://github.com/mehranhamedani/npd-api
$ cd npd-api
$ npm install
Doanload database script:
https://github.com/mehranhamedani/npd-docker/blob/master/db/init.sql
Execute on your Postgres server
Edit development.json in config/development.json by your database info
$ npm test
linux:
$ npm run start:linux:dev
windows:
npm run start:win:dev
curl:
$ curl http://[host-name-in-config]:[port-name-in-config]/api/food/getFoods
Postman:
You can import Postman json file for test by postman:
-
postman/food.postman_collection.json
-
postman/localhost.postman_environment.json
-
postman/server.postman_environment.json