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.1 KiB
Bash
40 lines
1.1 KiB
Bash
# ============================
|
||
# Rentman Clone – Environment Variables
|
||
# ============================
|
||
# Copy this file to .env and adjust values for your environment.
|
||
|
||
# --- Database ---
|
||
# SQLite for local development
|
||
DATABASE_URL=sqlite+aiosqlite:///./data/rentman.db
|
||
# PostgreSQL for production (uncomment when ready)
|
||
# DATABASE_URL=postgresql+asyncpg://rentman:changeme@postgres:5432/rentman
|
||
|
||
# --- JWT Authentication ---
|
||
JWT_SECRET_KEY=change-me-to-a-random-secret-at-least-32-chars
|
||
JWT_ALGORITHM=HS256
|
||
ACCESS_TOKEN_EXPIRE_MINUTES=30
|
||
REFRESH_TOKEN_EXPIRE_MINUTES=1440
|
||
|
||
# --- Redis ---
|
||
REDIS_URL=redis://localhost:6379/0
|
||
|
||
# --- MinIO / S3-compatible Storage ---
|
||
MINIO_ENDPOINT=localhost:9000
|
||
MINIO_ACCESS_KEY=minioadmin
|
||
MINIO_SECRET_KEY=minioadmin
|
||
MINIO_BUCKET_NAME=rentman-files
|
||
MINIO_SECURE=false
|
||
|
||
# --- Application ---
|
||
APP_ENV=development
|
||
APP_DEBUG=true
|
||
APP_NAME=Rentman Clone
|
||
API_V1_PREFIX=/api/v1
|
||
|
||
# --- CORS ---
|
||
CORS_ORIGINS=http://localhost:5173,http://localhost:3000
|
||
|
||
# --- Coolify / Deployment (optional) ---
|
||
# COOLIFY_API_URL=https://coolify.example.com/api/v1
|
||
# COOLIFY_API_TOKEN=
|