-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 666 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 666 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
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)
start_backend::
(cd ./server && $(ACTIVATE_VENV) && $(PYTHON3_EXE) app.py)
backend::
make install_backend && make start_backend