1- .PHONY : help install dev build clean demo test
1+ .PHONY : help install dev build clean demo test lint check-versions \
2+ core control web mcp \
3+ docker-build docker-test docker-test-quick docker-clean \
4+ docker-core docker-web docker-query docker-mcp docker-control
5+
6+ # =============================================================================
7+ # General Commands
8+ # =============================================================================
29
310help :
4- @echo " AllSource - Available Commands"
11+ @echo " Chronos - Available Commands"
512 @echo " =============================="
6- @echo " make install - Install all dependencies"
7- @echo " make dev - Run all services in development mode"
8- @echo " make build - Build all services"
9- @echo " make clean - Clean all build artifacts"
10- @echo " make demo - Quick demo setup (install + dev)"
11- @echo " make test - Run tests"
13+ @echo " "
14+ @echo " Development:"
15+ @echo " make install - Install all dependencies"
16+ @echo " make dev - Run all services in development mode"
17+ @echo " make build - Build all services"
18+ @echo " make clean - Clean all build artifacts"
19+ @echo " make demo - Quick demo setup (install + dev)"
20+ @echo " make test - Run tests"
21+ @echo " make lint - Run linters across all services"
22+ @echo " make check-versions - Check version consistency across services"
1223 @echo " "
1324 @echo " Individual Services:"
14- @echo " make core - Run Rust event store only"
15- @echo " make control - Run Go control plane only"
16- @echo " make web - Run Next.js web UI only"
17- @echo " make mcp - Run MCP server only"
25+ @echo " make core - Run Rust event store only"
26+ @echo " make control - Run Go control plane only"
27+ @echo " make web - Run Next.js web UI only"
28+ @echo " make mcp - Run MCP server only"
29+ @echo " "
30+ @echo " Container Testing:"
31+ @echo " make docker-test - Full container test suite (all services)"
32+ @echo " make docker-test-quick - Quick build-only test"
33+ @echo " make docker-build - Build all containers"
34+ @echo " make docker-clean - Remove test images"
35+ @echo " "
36+ @echo " Individual Container Builds:"
37+ @echo " make docker-core - Build core container"
38+ @echo " make docker-web - Build web container"
39+ @echo " make docker-query - Build query-service container"
40+ @echo " make docker-mcp - Build mcp-server container"
41+ @echo " make docker-control - Build control-plane container"
42+
43+ # =============================================================================
44+ # Development Commands
45+ # =============================================================================
1846
1947install :
2048 @echo " 📦 Installing dependencies..."
2149 bun install
22- cd services /control-plane && go mod download
50+ cd apps /control-plane && go mod download
2351
2452dev :
2553 @echo " 🚀 Starting all services..."
@@ -33,11 +61,12 @@ build:
3361clean :
3462 @echo " 🧹 Cleaning build artifacts..."
3563 bun clean
36- cd services/core && cargo clean
37- cd services/control-plane && rm -rf bin
64+ -cd apps/core && cargo clean
65+ -cd apps/control-plane && rm -rf bin
66+ -rm -rf .container-test-logs
3867
3968demo : install
40- @echo " 🎪 Starting AllSource demo..."
69+ @echo " 🎪 Starting Chronos demo..."
4170 @echo " Dashboard will be available at http://localhost:3000"
4271 @echo " "
4372 bun dev
@@ -46,19 +75,96 @@ test:
4675 @echo " 🧪 Running tests..."
4776 bun test
4877
49- # Individual service commands
78+ lint :
79+ @echo " 🔍 Running linters..."
80+ bun run lint
81+ cd apps/core && cargo fmt --check && cargo clippy --all-targets -- -D warnings
82+ cd apps/control-plane && go fmt ./... && go vet ./...
83+
84+ check-versions :
85+ @echo " 🔢 Checking version consistency..."
86+ ./scripts/check-versions.sh
87+
88+ # =============================================================================
89+ # Individual Service Commands
90+ # =============================================================================
91+
5092core :
51- @echo " ⚡ Starting Rust event store on :8080 "
52- cd services /core && cargo run --release
93+ @echo " ⚡ Starting Rust event store on :3900 "
94+ cd apps /core && cargo run --release
5395
5496control :
55- @echo " 🎯 Starting Go control plane on :8081 "
56- cd services /control-plane && go run main.go
97+ @echo " 🎯 Starting Go control plane on :8080 "
98+ cd apps /control-plane && go run main.go
5799
58100web :
59101 @echo " 🌐 Starting Next.js web UI on :3000"
60102 cd apps/web && bun dev
61103
62104mcp :
63105 @echo " 🤖 Starting MCP server"
64- cd packages/mcp-server && bun dev
106+ cd apps/mcp-server-elixir && mix phx.server
107+
108+ # =============================================================================
109+ # Container Testing Commands
110+ # =============================================================================
111+
112+ docker-test :
113+ @echo " 🐳 Running full container test suite..."
114+ ./scripts/container-test.sh
115+
116+ docker-test-quick :
117+ @echo " 🐳 Running quick container build test..."
118+ ./scripts/container-test.sh --quick
119+
120+ docker-build :
121+ @echo " 🐳 Building all containers..."
122+ ./scripts/container-test.sh --build-only
123+
124+ docker-clean :
125+ @echo " 🧹 Cleaning test containers..."
126+ -docker rmi chronos-core:test 2> /dev/null
127+ -docker rmi chronos-web:test 2> /dev/null
128+ -docker rmi chronos-query-service:test 2> /dev/null
129+ -docker rmi chronos-mcp-server:test 2> /dev/null
130+ -docker rmi chronos-control-plane:test 2> /dev/null
131+ @echo " ✅ Test images cleaned"
132+
133+ # Individual container builds
134+ docker-core :
135+ @echo " 🐳 Building core container..."
136+ docker build -t chronos-core:test apps/core
137+
138+ docker-web :
139+ @echo " 🐳 Building web container..."
140+ docker build -f apps/web/Dockerfile -t chronos-web:test .
141+
142+ docker-query :
143+ @echo " 🐳 Building query-service container..."
144+ docker build -t chronos-query-service:test apps/query-service
145+
146+ docker-mcp :
147+ @echo " 🐳 Building mcp-server container..."
148+ docker build -t chronos-mcp-server:test apps/mcp-server-elixir
149+
150+ docker-control :
151+ @echo " 🐳 Building control-plane container..."
152+ docker build -t chronos-control-plane:test apps/control-plane
153+
154+ # =============================================================================
155+ # Docker Compose Commands
156+ # =============================================================================
157+
158+ up :
159+ @echo " 🚀 Starting all services with Docker Compose..."
160+ docker compose up -d
161+
162+ down :
163+ @echo " 🛑 Stopping all services..."
164+ docker compose down
165+
166+ logs :
167+ docker compose logs -f
168+
169+ ps :
170+ docker compose ps
0 commit comments