add npm commands for docker and setup

This commit is contained in:
Bilal Catic
2019-05-17 09:10:03 +02:00
parent 7192c28c07
commit 93f5d8071e

View File

@@ -7,7 +7,10 @@
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node ./index.js",
"start-mon": "nodemon ./index.js",
"migrate": "cd app && npx sequelize db:migrate"
"migrate": "cd app && npx sequelize db:migrate",
"setup" : "docker build -t marketalerts . && docker run --name pg_marketalerts -d -p 5432:5432 marketalerts && npm run migrate",
"docker-start" : "docker start pg_marketalerts",
"docker-stop" : "docker stop pg_marketalerts"
},
"repository": {
"type": "git",