feat: database

This commit is contained in:
2025-11-16 10:33:59 +01:00
parent 3cf9601a71
commit 1417023395
14 changed files with 1436 additions and 192 deletions

23
Makefile Normal file
View File

@@ -0,0 +1,23 @@
.PHONY: dev up down clean
# Start development environment: PostgreSQL and the app
dev:
@echo "Starting PostgreSQL database..."
@docker compose -f docker-compose.dev.yaml up -d
@echo "Waiting for database to be ready..."
@sleep 3
@echo "Starting application..."
@npm start
# Start only the database
up:
@docker compose -f docker-compose.dev.yaml up -d
# Stop the database
down:
@docker compose -f docker-compose.dev.yaml down
# Stop and remove volumes (clean slate)
clean:
@docker compose -f docker-compose.dev.yaml down -v