-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (24 loc) · 911 Bytes
/
Makefile
File metadata and controls
36 lines (24 loc) · 911 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
35
36
.PHONY: dev backend frontend install install-backend install-frontend rami-kali-build rami-kali-start rami-kali-stop rami-kali-logs
dev:
@echo "Starting backend and frontend..."
$(MAKE) backend & $(MAKE) frontend & wait
backend:
cd backend && python -m uvicorn main:app --reload --port 8000
frontend:
cd frontend && npm run dev
install: install-backend install-frontend
install-backend:
cd backend && python -m venv .venv && . .venv/Scripts/activate && pip install -r requirements.txt
install-frontend:
cd frontend && npm install
test:
cd backend && python -m pytest tests/ -v
RAMIKALI_DIR = rami-kali
rami-kali-build:
docker build -t rami-kali $(RAMIKALI_DIR)
rami-kali-start:
docker compose -f $(RAMIKALI_DIR)/docker-compose.yml up -d
rami-kali-stop:
docker compose -f $(RAMIKALI_DIR)/docker-compose.yml down
rami-kali-logs:
docker compose -f $(RAMIKALI_DIR)/docker-compose.yml logs -f