7f7da15965
Completed: - Phase 0: Project Setup (T001-T003) - Docker Compose, FastAPI skeleton, React SPA - Phase 1: Auth System (T004-T008) - DB models, JWT auth, RBAC middleware, user management - Phase 2: Contacts & Tags (T009-T011) - CRUD API + UI - Phase 3: Equipment Catalog (T012-T014) - Models, API, UI with barcode/QR - Phase 4: Crew Management (T015-T017) - Models, availability, UI - Phase 5: Vehicle Fleet (T018-T020) - Models, assignments, UI - Phase 6: Projects (T021-T023) - Project hierarchy models, CRUD API, list/detail UI
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
.PHONY: help dev backend-dev frontend-dev migrate create-migration install-backend install-frontend clean
|
|
|
|
help:
|
|
@echo "Available commands:"
|
|
@echo " make dev - Start all services with Docker Compose"
|
|
@echo " make backend-dev - Start backend only with Docker"
|
|
@echo " make frontend-dev - Start frontend only with Docker"
|
|
@echo " make install-backend - Install backend dependencies"
|
|
@echo " make install-frontend - Install frontend dependencies"
|
|
@echo " make migrate - Run database migrations"
|
|
@echo " make create-migration - Create a new Alembic migration (MSG='message')"
|
|
@echo " make clean - Remove Python cache files"
|
|
|
|
# Docker-based development
|
|
dev:
|
|
docker-compose up --build
|
|
|
|
backend-dev:
|
|
docker-compose up backend --build
|
|
|
|
frontend-dev:
|
|
docker-compose up frontend --build
|
|
|
|
# Local development (without Docker)
|
|
install-backend:
|
|
cd backend && pip install -r requirements.txt
|
|
|
|
install-frontend:
|
|
cd frontend && npm install
|
|
|
|
migrate:
|
|
cd backend && alembic upgrade head
|
|
|
|
create-migration:
|
|
cd backend && alembic revision --autogenerate -m "$(MSG)"
|
|
|
|
clean:
|
|
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
|
|
find . -type f -name "*.pyc" -delete
|