-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
95 lines (68 loc) · 2.31 KB
/
Makefile
File metadata and controls
95 lines (68 loc) · 2.31 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# evoFlowAI - Makefile for easy commands
# Run: make <command>
.PHONY: help install build dev dev-backend dev-web docker-up docker-down docker-logs docker-clean
help: ## Show this help message
@echo "evoFlowAI - Available commands:"
@echo ""
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install all dependencies
npm install
cd backend && npm install
cd web && npm install
cd shared && npm install
build: ## Build all packages
npm run build
dev: ## Run all services in development mode
npm run dev
dev-backend: ## Run only backend in development mode
cd backend && npm run dev
dev-web: ## Run only web in development mode
cd web && npm run dev
# Docker commands
docker-up: ## Start Docker containers (MongoDB Atlas)
docker-compose up --build
docker-up-local: ## Start Docker containers with local MongoDB
docker-compose -f docker-compose.local.yml up --build
docker-down: ## Stop Docker containers
docker-compose down
docker-down-local: ## Stop Docker containers (local MongoDB)
docker-compose -f docker-compose.local.yml down
docker-logs: ## View Docker logs
docker-compose logs -f
docker-logs-backend: ## View backend logs
docker-compose logs -f backend
docker-logs-web: ## View web logs
docker-compose logs -f web
docker-clean: ## Remove all Docker containers, images and volumes
docker-compose down -v
docker system prune -af
docker-restart: ## Restart Docker containers
docker-compose restart
docker-rebuild: ## Rebuild and restart Docker containers
docker-compose up --build --force-recreate
# Testing
test: ## Run all tests
npm test
test-backend: ## Run backend tests
cd backend && npm test
test-web: ## Run web tests
cd web && npm test
# Linting
lint: ## Run linter
npm run lint
lint-fix: ## Fix linting issues
npm run lint:fix
# Database
db-seed: ## Seed database with sample data (not implemented yet)
@echo "Database seeding not implemented yet"
# Clean
clean: ## Remove node_modules and build artifacts
rm -rf node_modules
rm -rf backend/node_modules backend/dist
rm -rf web/node_modules web/.next
rm -rf shared/node_modules shared/dist
# Production
prod-backend: ## Run backend in production mode
cd backend && npm start
prod-web: ## Run web in production mode
cd web && npm start