How donaldgover/salon-lead-queue works
This FastAPI salon-management system accepts lead and catalog requests, validates them, persists records, and provides scored/reorderable lead queues plus catalog browsing and maintenance. The main user workflow is lead entry → scoring → queue management → API/dashboard results; a separate catalog workflow covers category/service maintenance and seeded catalog data. Dashboard templates and the health endpoint are documented capabilities. Relationships reflect shown calls and README claims; template rendering details and unsampled router behavior are limited to explicit evidence.
Main entry points: database.py Database sessions · main.py FastAPI app · dashboard.py Dashboard routes · leads.py Lead API
Components 18
API entry
- FastAPI app
app/main.py - Health endpoint
app/routers/health.py - Request validation
app/schemas.py
Lead workflow
- Lead API
app/routers/leads.py - Lead operations
app/crud.py - Lead scoring
app/services/scoring.py - Queue API
app/routers/queue.py - Queue manager
app/services/prioritization.py
Service catalog
- Catalog API
app/routers/services.py - Catalog operations
app/crud.py - Seed catalog data
app/data/catalog.py
Data layer
- ORM models
app/models.py - Database sessions
app/database.py - Configuration
app/config.py
Dashboard
- Dashboard routes
app/routers/dashboard.py - HTML views
app/templates
Other components
- Salon staff
- PostgreSQL
Connections 28
- Salon staff → FastAPI app: sends requests
README.md - FastAPI app → Database sessions: initializes
app/main.py - FastAPI app → Health endpoint: registers
app/main.py - FastAPI app → Lead API: registers
app/main.py - FastAPI app → Queue API: registers
app/main.py - FastAPI app → Catalog API: registers
app/main.py - FastAPI app → Dashboard routes: registers
app/main.py - Lead API → Request validation: validates with
app/routers/leads.py - Lead API → Lead operations: calls
app/routers/leads.py - Lead operations → Lead scoring: calculates score
app/crud.py - Queue API → Queue manager: calls
app/routers/queue.py - Queue manager → Lead scoring: recalculates with
app/services/prioritization.py - Catalog API → Request validation: validates with
app/routers/services.py - Catalog API → Catalog operations: calls
app/routers/services.py - Catalog operations → Seed catalog data: seeds from
app/crud.py - Dashboard routes → Queue manager: gets queue and stats
app/routers/dashboard.py - Dashboard routes → Catalog operations: gets catalog data
app/routers/dashboard.py - Dashboard routes → HTML views: renders
app/routers/dashboard.py - Database sessions → Configuration: reads settings
app/database.py - Database sessions → ORM models: creates tables
app/database.py - Database sessions → PostgreSQL: connects to
- Lead operations → ORM models: reads and writes
app/crud.py - Catalog operations → ORM models: reads and writes
app/crud.py - Queue manager → ORM models: queries and updates
app/services/prioritization.py - Lead API → Database sessions: gets sessions
app/routers/leads.py - Queue API → Database sessions: gets sessions
app/routers/queue.py - Catalog API → Database sessions: gets sessions
app/routers/services.py - Dashboard routes → Database sessions: gets sessions
app/routers/dashboard.py