-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 726 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 726 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
# Define variables
PYTHON := python
PIP := pip3
NPM := npm
DOCKER := docker
# Define phony targets
.PHONY: all install-dependencies install-backend install-frontend run-backend run-frontend
# Define targets
all: install-dependencies run-application
install-dependencies: install-backend install-frontend
run-application: run-backend run-frontend
install-backend:
@echo "Installing Python dependencies..."
$(PIP) install -r backend/requirements.txt
install-frontend:
@echo "Installing Node.js dependencies..."
cd frontend && $(NPM) install
run-backend:
@echo "Running backend server..."
start /b ${PYTHON} backend/codecraft.py &
run-frontend:
@echo "Running frontend server..."
cd frontend && $(NPM) run start &