12
12
@awk ' /^[a-zA-Z_-]+:/{split($$1, target, ":"); print " " target[1] "\t" substr($$0, index($$0,$$2))}' $(MAKEFILE_LIST )
13
13
14
14
# Backend commands
15
- .PHONY : start-backend test-backend migrate-backend
15
+ .PHONY : start-backend test-backend
16
16
17
17
start-backend : # # Start the backend server with FastAPI and hot reload
18
18
cd $(BACKEND_DIR ) && ./start.sh
@@ -32,25 +32,30 @@ test-frontend: ## Run frontend tests using npm
32
32
33
33
34
34
# Docker commands
35
- .PHONY : docker-backend-shell docker-frontend-shell build-backend-container build-frontend-container \
36
- up-backend-container up-frontend-container
35
+ .PHONY : docker-backend-shell docker-frontend-shell docker-build docker-build-backend \
36
+ docker-build-frontend docker-start-backend docker-start-frontend docker-up-test-db \
37
+ docker-migrate-db docker-db-schema docker-test-backend docker-test-frontend
38
+
37
39
38
40
docker-backend-shell : # # Access the backend container shell
39
41
$(DOCKER_COMPOSE ) run --rm backend sh
40
42
41
43
docker-frontend-shell : # # Access the frontend container shell
42
44
$(DOCKER_COMPOSE ) run --rm frontend sh
43
45
46
+ docker-build : # # Build all the services
47
+ $(DOCKER_COMPOSE ) build --no-cache
48
+
44
49
docker-build-backend : # # Build the backend container with no cache
45
- docker build backend --no-cache
50
+ $( DOCKER_COMPOSE ) build backend --no-cache
46
51
47
52
docker-build-frontend : # # Build the frontend container with no cache
48
- docker build frontend --no-cache
53
+ $( DOCKER_COMPOSE ) build frontend --no-cache
49
54
50
- docker-up -backend : # # Start the backend container
55
+ docker-start -backend : # # Start the backend container
51
56
$(DOCKER_COMPOSE ) up backend
52
57
53
- docker-up -frontend : # # Start the frontend container
58
+ docker-start -frontend : # # Start the frontend container
54
59
$(DOCKER_COMPOSE ) up frontend
55
60
56
61
docker-up-test-db : # # Start the test database container
0 commit comments