-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
32 lines (24 loc) · 933 Bytes
/
Makefile
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
SERVICE_NAME := boilerplate-typescript-fastify-clean-architecture
.DEFAULT_GOAL := setup
MONGO_AUTH_NAME := admin
POSTMAN_COLLECTION_PATH := test/_postman/collection/${SERVICE_NAME}_test.postman.collection.json
POSTMAN_ENVIRONMENT_PATH := test/_postman/environment/${SERVICE_NAME}_oopback.postman.environment.json
mgo-shutdown: shutdown-mongo-on-local
pm-github-action: postman-test-api-on-gh-action
shutdown-mongo-on-local:
mongo --eval "db.getSiblingDB('${MONGO_AUTH_NAME}').shutdownServer()"
start-init:
docker-compose up --build --force-recreate --renew-anon-volumes
compilation-and-run:
npm run build
npm run start
start:
docker-compose up --build
stop:
@ echo "> Stop development environment"
@ docker-compose down
@ echo "> ----- Complete -----"
postman-test-api:
newman run ${POSTMAN_COLLECTION_PATH} -e ${POSTMAN_ENVIRONMENT_PATH} --verbose
postman-test-api-on-gh-action:
sh postman.api_test.gh_action.sh