Update makefile

This commit is contained in:
Eric Gullickson
2025-08-23 13:18:54 -05:00
parent 64d51a3a48
commit 3e9ea5b4b7

View File

@@ -21,7 +21,7 @@ setup:
@cp .env.example .env @cp .env.example .env
@echo "Please update .env with your Auth0 and API credentials" @echo "Please update .env with your Auth0 and API credentials"
@echo "Building and starting all services..." @echo "Building and starting all services..."
@docker-compose up -d --build @docker compose up -d --build
@echo "✅ All services started!" @echo "✅ All services started!"
@echo "Frontend: http://localhost:3000" @echo "Frontend: http://localhost:3000"
@echo "Backend: http://localhost:3001" @echo "Backend: http://localhost:3001"
@@ -29,46 +29,46 @@ setup:
dev: dev:
@echo "Starting development environment..." @echo "Starting development environment..."
@docker-compose up -d --build @docker compose up -d --build
@echo "✅ Development environment running!" @echo "✅ Development environment running!"
@echo "Frontend: http://localhost:3000" @echo "Frontend: http://localhost:3000"
@echo "Backend: http://localhost:3001/health" @echo "Backend: http://localhost:3001/health"
@echo "View logs with: make logs" @echo "View logs with: make logs"
stop: stop:
@docker-compose down @docker compose down
clean: clean:
@echo "Cleaning up all containers, volumes, and images..." @echo "Cleaning up all containers, volumes, and images..."
@docker-compose down -v --rmi all @docker compose down -v --rmi all
@docker system prune -f @docker system prune -f
test: test:
@echo "Running backend tests in container..." @echo "Running backend tests in container..."
@docker-compose exec backend npm test @docker compose exec backend npm test
logs: logs:
@docker-compose logs -f @docker compose logs -f
logs-backend: logs-backend:
@docker-compose logs -f backend @docker compose logs -f backend
logs-frontend: logs-frontend:
@docker-compose logs -f frontend @docker compose logs -f frontend
shell-backend: shell-backend:
@docker-compose exec backend sh @docker compose exec backend sh
shell-frontend: shell-frontend:
@docker-compose exec frontend sh @docker compose exec frontend sh
rebuild: rebuild:
@echo "Rebuilding containers with latest code changes..." @echo "Rebuilding containers with latest code changes..."
@docker-compose up -d --build @docker compose up -d --build
@echo "✅ Containers rebuilt and restarted!" @echo "✅ Containers rebuilt and restarted!"
@echo "Frontend: http://localhost:3000" @echo "Frontend: http://localhost:3000"
@echo "Backend: http://localhost:3001/health" @echo "Backend: http://localhost:3001/health"
migrate: migrate:
@echo "Running database migrations..." @echo "Running database migrations..."
@docker-compose exec backend npm run migrate:all @docker compose exec backend npm run migrate:all