- Activity service API for web & mobile apps
-
copy env_example to .env and change environtment
-
Install Node.js v10.x.x.x
-
Install npm v6.x.x
-
Install project dependencies:
-
Install all dependencies defined in package.json:
npm install
or bash build.sh
-
-
Database migration (using Sequelize):
- create model (and migration):
node node_modules/.bin/sequelize model:create --name <model_name> --attributes <attributes>
- create migration:
node node_modules/.bin/sequelize migration:create
- run:
node node_modules/.bin/sequelize db:migrate
- undo:
node node_modules/.bin/sequelize db:migrate:undo
- help:
node node_modules/.bin/sequelize help
- create model (and migration):
-
How to run tests:
npm test
-
Deployment instructions
npm start
ornode server.js
© Rahmat Wahyu Hadi - 2018