forked from Eleven-Trading/TradeNote
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 845 Bytes
/
Makefile
File metadata and controls
28 lines (21 loc) · 845 Bytes
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
.PHONY: node-env-prep mongo-start mongo-stop mongo-restart mongo-reset node-build dev-start
mongo-start:
docker compose -f ./docker-compose-local.yml up -d mongo
mongo-stop:
docker compose -f ./docker-compose-local.yml down mongo
mongo-restart: mongo-stop mongo-start
mongo-reset: mongo-stop
docker rm -f tradenote_db
docker volume rm -f $$(docker volume ls)
$(MAKE) mongo-start
node-env-prep:
. $$NVM_DIR/nvm.sh; nvm install 18
. $$NVM_DIR/nvm.sh; nvm use 18
. $$NVM_DIR/nvm.sh; nvm use 18; npm install
node-build: node-env-prep
. $$NVM_DIR/nvm.sh; nvm use 18; npm run build
dev-start: mongo-start node-build
. $$NVM_DIR/nvm.sh; nvm use 18; \
MONGO_URI=mongodb://tradenote:tradenote@localhost:27017/tradenote?authSource=admin \
TRADENOTE_DATABASE=tradenote APP_ID=123456 MASTER_KEY=123456 TRADENOTE_PORT=8080 \
npm run start