- runs on node.js v10.16.3
- express 4+
- eslint
- [mysql] - docker image of mysql
- POSTMAN chrome extension for verification
-
Edit configuration in
config/default.jsonand -
custom environment variables names in
config/custom-environment-variables.json, -
Db configuration in config.json Following variables can be configured:
-
portthe port to listen -
logLevelthe log leveldebugorinfo -
versionthe version of api -
config.json use for db onfiguration
- Please make sure to configure url of database rightly in
config/config.jsonor use host:0.0.0.0. - mongo docker instance run : cd docker/postgre ->run docker-compose up
- Install dependencies
npm i - run lint check
npm run lint - Start app
npm start
- Please make sure to configure url of database rightly in
config/config.jsonor use host host:mydb. - docker ps -a //to check already mysql instance is running
- docker stop containerid
- docker rm containerid
- docker-compose build --no-cache
- docker-compose up
- Load postman collection:
- endpoints: docs/api.postman_collection.json
- environment: docs/api.postman_environment.json
- use Authorization header Bearer {{user_token}}