How 2026-kw-hackathon/32_wolgye-debugging-backend works
차곡차곡 is a FastAPI backend for villa-alley parking: residents manage vehicles and parking, discover and request shared spaces, and managers administer buildings, offers, and requests. The main flow is an API request through a resource endpoint into domain services that apply rules and persist state in PostgreSQL/PostGIS. The README documents the broader API capabilities; some endpoint and service implementations were not sampled, so those links are marked unverified rather than asserted as observed calls.
Main entry points: auth.py Authentication · models Domain Records · garages.py Space Discovery · main.py App & Handlers
Components 25
HTTP API
- App & Handlers
app/main.py - V1 Router
app/api/v1/router.py - Resource Endpoints
app/api/v1/endpoints - Request Dependencies
app/api/deps.py - HTTP Error Mapping
app/api/errors.py
Identity & Access
- Auth Endpoints
app/api/v1/endpoints/auth.py - Authentication
app/services/auth.py - Token Security
app/core/security.py - Resident Accounts
app/services/users.py
Parking Operations
- Garage Endpoints
app/api/v1/endpoints/garages.py - Space Discovery
app/services/garages.py - Parking & Schedules
app/services/parkings.py - Vehicle Management
app/services/vehicles.py - Building Views
app/services/building_view.py - Blockage Logic
app/services/blocking.py - Nightly Block Alert
app/jobs/block_alert.py
Sharing & Community
- Sharing Requests
app/services/share_requests.py - Manager Operations
app/services/admin_shares.py - Notifications
app/services/notifications.py - Token Transfers
app/services/tokens.py
Domain & Persistence
- Domain Records
app/models - Request & Response Types
app/schemas - Async DB Session
app/db/session.py - PostgreSQL / PostGIS
Other components
- Resident
Connections 26
- Resident → App & Handlers: sends requests
- App & Handlers → V1 Router: registers routes
app/main.py - V1 Router → Resource Endpoints: routes to
app/api/v1/router.py - Resource Endpoints → Request Dependencies: gets dependencies
app/api/v1/endpoints/garages.py - App & Handlers → HTTP Error Mapping: registers handlers
app/main.py - Auth Endpoints → Authentication: calls
app/api/v1/endpoints/auth.py - Authentication → Token Security: creates tokens
app/services/auth.py - Authentication → Resident Accounts: checks onboarding
app/services/auth.py - Authentication → Token Transfers: grants signup tokens
app/services/auth.py - Garage Endpoints → Space Discovery: calls
app/api/v1/endpoints/garages.py - Space Discovery → Domain Records: reads parking data
app/services/garages.py - Space Discovery → Request & Response Types: builds results
app/services/garages.py - Space Discovery → PostgreSQL / PostGIS: queries
app/services/garages.py - Parking & Schedules → Domain Records: reads and writes
- Vehicle Management → Domain Records: reads and writes
- Building Views → Domain Records: reads
- Sharing Requests → Domain Records: reads and writes
- Manager Operations → Token Transfers: transfers tokens
app/services/admin_shares.py - Manager Operations → Notifications: creates alerts
app/services/admin_shares.py - Sharing Requests → Token Transfers: settles accepted requests
- Nightly Block Alert → Notifications: creates alerts
app/jobs/block_alert.py - Nightly Block Alert → Building Views: uses building view
app/jobs/block_alert.py - Request Dependencies → Authentication: authenticates
app/api/deps.py - Request Dependencies → Async DB Session: provides session
app/api/deps.py - Async DB Session → PostgreSQL / PostGIS: connects
app/db/session.py - HTTP Error Mapping → App & Handlers: maps exceptions
app/main.py