-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 766 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 766 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
29
30
31
32
33
34
ifeq ($(OS),Windows_NT)
PYTHON3_EXE := python
ACTIVATE_VENV := . venv/Scripts/activate
else
PYTHON3_EXE := python3
ACTIVATE_VENV := . venv/bin/activate
endif
install_frontend::
(cd ./client && npm install)
start_frontend::
(cd ./client && npm start)
frontend::
make install_frontend && make start_frontend
clean_backend::
(cd ./server && rm -rf venv)
install_backend::
(cd ./server \
&& $(PYTHON3_EXE) -m venv venv \
&& $(ACTIVATE_VENV) \
&& $(PYTHON3_EXE) -m pip install --no-deps --no-cache-dir -r requirements.txt)
build_db::
(cd ./server && $(ACTIVATE_VENV) && $(PYTHON3_EXE) databaseBuild.py)
start_backend::
(cd ./server && $(ACTIVATE_VENV) && $(PYTHON3_EXE) app.py)
backend::
make install_backend && make build_db && make start_backend