How 0llrayll0-beep/festouu_api works
Festeu is a FastAPI backend for event-service listings and user interactions. Clients send requests through the API entry point to account, listing, search, profile/information, and chat capabilities; those handlers read or write PostgreSQL, with JWT services protecting user operations. Google sign-in verifies an external identity before creating or linking an account and returning an application token. The sampled code shows these domain stages and integrations; routing registration for several modules is not visible, so those dispatch links are marked unverified.
Main entry points: main.py FastAPI application · database.py Database pool · jwt_service.py JWT access control · auth.py Google login route
Components 17
API runtime
- FastAPI application
main.py - Status endpoints
routes/status_api.py
Accounts and access
- Account management
routes/users.py - Google login route
routes/auth.py - Google token verification
services/google_auth.py - Account auth operations
services/auth_service.py - JWT access control
services/jwt_service.py
Listings and discovery
- Event listings
routes/posts.py - Listing search
routes/search.py - Profiles and information
routes/info.py
User engagement
- Chat and messaging
routes/chats.py
Persistence and integrations
- PostgreSQL
- Database pool
database.py - Runtime configuration
config.py
Other components
- API client
- Google identity service
- ViaCEP service
Connections 29
- API client → FastAPI application: sends requests
main.py - FastAPI application → Status endpoints: dispatches to
main.py - FastAPI application → Account management: dispatches to
main.py - FastAPI application → Google login route: dispatches to
main.py - FastAPI application → Event listings: dispatches to
main.py - FastAPI application → Listing search: dispatches to
main.py - FastAPI application → Profiles and information: dispatches to
main.py - FastAPI application → Chat and messaging: dispatches to
main.py - FastAPI application → Database pool: opens and closes
main.py - Google login route → Google token verification: verifies token
routes/auth.py - Google token verification → Google identity service: validates with
services/google_auth.py - Google login route → Account auth operations: looks up and updates
routes/auth.py - Google login route → JWT access control: creates token
routes/auth.py - Account management → JWT access control: checks access
routes/users.py - Event listings → JWT access control: checks access
routes/posts.py - Chat and messaging → JWT access control: checks access
routes/chats.py - Account auth operations → Database pool: queries users
services/auth_service.py - JWT access control → Database pool: resolves admin context
services/jwt_service.py - Event listings → Database pool: reads and writes
routes/posts.py - Listing search → Database pool: queries listings
routes/search.py - Profiles and information → Database pool: reads profile data
routes/info.py - Chat and messaging → Database pool: reads and writes
routes/chats.py - Account management → Database pool: reads and writes
routes/users.py - Status endpoints → Database pool: checks database
routes/status_api.py - Database pool → PostgreSQL: connects to
database.py - Google token verification → Runtime configuration: reads client ID
services/google_auth.py - JWT access control → Runtime configuration: reads signing keys
services/jwt_service.py - FastAPI application → Runtime configuration: sets admin secret
main.py - Profiles and information → ViaCEP service: looks up postal code
routes/info.py