-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (53 loc) · 1.76 KB
/
Makefile
File metadata and controls
63 lines (53 loc) · 1.76 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
.PHONY: help setup start stop clean test lint format
help:
@echo "Data Workflow Platform - Development Commands"
@echo ""
@echo "setup - Set up development environment"
@echo "start - Start all services"
@echo "stop - Stop all services"
@echo "clean - Clean up containers and volumes"
@echo "test - Run all tests"
@echo "test-backend - Run backend tests"
@echo "test-frontend - Run frontend tests"
@echo "lint - Run linting for all code"
@echo "format - Format all code"
setup:
@echo "Setting up development environment..."
docker-compose up -d postgres redis minio vault
cd backend && python -m venv venv && . venv/bin/activate && pip install -r requirements.txt
cd frontend && npm install
@echo "Setup complete!"
start:
@echo "Starting all services..."
docker-compose up -d
@echo "Services started. Access:"
@echo " - Frontend: http://localhost:5173"
@echo " - Backend API: http://localhost:8000"
@echo " - Airflow: http://localhost:8080"
@echo " - MinIO: http://localhost:9001"
stop:
@echo "Stopping all services..."
docker-compose down
clean:
@echo "Cleaning up..."
docker-compose down -v
rm -rf backend/venv
rm -rf frontend/node_modules
rm -rf airflow/logs/*
test: test-backend test-frontend
test-backend:
@echo "Running backend tests..."
cd backend && . venv/bin/activate && pytest
test-frontend:
@echo "Running frontend tests..."
cd frontend && npm test
lint:
@echo "Linting backend..."
cd backend && . venv/bin/activate && ruff check . && mypy app
@echo "Linting frontend..."
cd frontend && npm run lint
format:
@echo "Formatting backend..."
cd backend && . venv/bin/activate && black . && ruff check . --fix
@echo "Formatting frontend..."
cd frontend && npm run format