-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (22 loc) · 828 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
24
25
26
27
28
29
.PHONY: install-all
# Install dependencies for the frontend
install-frontend:
cd frontend && npm install
# Install dependencies for the Node.js backend
install-backend-nodejs:
cd backend/nodejs && npm install
# Create a virtual environment and install dependencies for the Python backend
install-backend-python:
cd backend/python && python3 -m venv venv
cd backend/python && source venv/bin/activate && pip install -r requirements.txt
# Run the frontend
run-frontend: install-frontend
cd frontend && npm start
# Run the Node.js backend
run-backend-nodejs: install-backend-nodejs
cd backend/nodejs && npm start
# Run the Python backend
run-backend-python: install-backend-python
cd backend/python && source venv/bin/activate && python3 app.py
# Install all project dependencies
install-all: install-backend-python