-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
35 lines (35 loc) · 2.65 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"scripts": {
"build-services": "docker-compose -f ./docker-composition/docker-compose-services.yml build",
"compose-persistence": "docker-compose -f ./docker-composition/docker-compose-persistence.yml up",
"compose-kafka": "docker-compose -f ./docker-composition/docker-compose-kafka.yml up",
"compose-all": "docker-compose -f ./docker-composition/docker-compose-kafka.yml -f ./docker-composition/docker-compose-persistence.yml -f ./docker-composition/docker-compose-services.yml up",
"compose-all-down": "docker-compose -f ./docker-composition/docker-compose-kafka.yml -f ./docker-composition/docker-compose-persistence.yml -f ./docker-composition/docker-compose-services.yml down",
"compose-ci-dependencies": "COMPOSE_PROJECT_NAME=distributedmessaging docker-compose -f ./docker-composition/docker-compose-ci-dependencies.yml up",
"compose-ci-dependencies-down": "COMPOSE_PROJECT_NAME=distributedmessaging docker-compose -f ./docker-composition/docker-compose-ci-dependencies.yml down",
"start-service-api-gateway": "cd ./services/apiGateway && npm install && APP_PORT=8900 node index",
"start-service-inventory": "cd ./services/inventory && npm install && APP_PORT=8901 node index",
"start-service-order": "cd ./services/order && npm install && APP_PORT=8902 node index",
"start-service-notification": "cd ./services/notification && npm install && APP_PORT=8903 node index",
"start-service-web": "cd ./services/web && serve -p 5000",
"lint": "npx eslint . --ext .js --fix",
"post-order-1": "cd ./services/apiGateway/routes/order && curl -H \"Content-Type: application/json\" -d @order1.json -vPOST http://0.0.0.0:8900/order",
"post-order-2": "cd ./services/apiGateway/routes/order && curl -H \"Content-Type: application/json\" -d @order2.json -vPOST http://0.0.0.0:8900/order",
"seed-inventory": "curl -XPOST http://0.0.0.0:8901/automation-testing/seed",
"drop-inventory": "curl -XDELETE http://0.0.0.0:8901/automation-testing/all",
"test-e2e-local": "cd ./e2e && npm run test:local",
"build-e2e-ci": "docker-compose -f ./docker-composition/docker-compose-ci-tests.yml build",
"test-e2e-ci": "COMPOSE_PROJECT_NAME=distributedmessaging docker-compose -f ./docker-composition/docker-compose-ci-tests.yml up"
},
"devDependencies": {
"eslint": "^5.12.1",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0"
},
"standard": {
"env": [ "jest" ]
}
}