-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (17 loc) · 637 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
.DEFAULT_GOAL := help
CLIENT_URL = 'http://localhost:5000/'
help: ## Shows Makefile help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
install: ## Install Project Dependencies
@pip install -r requirements.txt
flask_run: ## Run flask client app
@export FLASK_APP=client/run.py &&\
export FLASK_ENV=production &&\
export FLASK_DEBUG=0 &&\
flask run
tracker_run: ## Run Tracker app
@echo 'Running Tracker ...'
@python tracker.py
run: ## Run all app services
@echo 'Running client app on ${CLIENT_URL}'
@python app.py