Add repeatable PostgreSQL integration tests and configure Vitest, Testing Library, and ESLint. Refs #11 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
33 lines
572 B
Makefile
33 lines
572 B
Makefile
.PHONY: up down build logs deps test-postgres
|
|
|
|
test-postgres:
|
|
./backend/scripts/test-postgres.sh
|
|
|
|
# Démarrer tous les services
|
|
up:
|
|
docker-compose up --build
|
|
|
|
# Arrêter
|
|
down:
|
|
docker-compose down
|
|
|
|
# Build uniquement
|
|
build:
|
|
docker-compose build
|
|
|
|
# Logs
|
|
logs:
|
|
docker-compose logs -f
|
|
|
|
# Télécharger les dépendances Go (à lancer avant le premier build)
|
|
deps:
|
|
cd backend && go mod tidy
|
|
cd frontend && npm install
|
|
|
|
# Lancer en développement (backend + frontend séparément)
|
|
dev-backend:
|
|
cd backend && go run ./cmd/server
|
|
|
|
dev-frontend:
|
|
cd frontend && npm run dev
|