forked from LFGBanditLabs/Quipay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 986 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 986 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
# Quipay Development Makefile
.PHONY: help dev build stop clean seed migrate
## Show this help message
help:
@echo ""
@echo " Quipay — Makefile commands"
@echo " ──────────────────────────────────────"
@grep -E '^## ' Makefile | sed 's/## / /'
@echo ""
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | \
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-12s\033[0m %s\n", $$1, $$2}'
@echo ""
dev: ## Start the full-stack development environment (with hot-reload)
docker compose up --build
build: ## Build all Docker images
docker compose build
stop: ## Stop all running containers
docker compose down
clean: ## Remove containers, volumes, and orphan images
docker compose down -v --remove-orphans
migrate: ## Run pending database migrations
docker compose exec backend npm run migration:run
seed: ## Seed the database with development fixtures
docker compose exec backend npm run seed