How masher001/floorball-kenya works
FloorballKenya is a planned web platform for Kenyan floorball administration and commerce. The main user workflow runs from browser pages through the JavaScript API client to FastAPI, where domain endpoints handle competition, marketplace, and account workflows and use Supabase for persistence. The README also describes media storage, advertising, sponsorship, analytics, and administration capabilities. Some domain areas are documented but their source was not sampled, so their internal call relationships are not asserted here.
Main entry points: leagues Leagues and seasons · supabase.py Supabase data services · pages Public pages and dashboards · api.js API client
Components 25
Web experience
- Public pages and dashboards
frontend/js/pages - API client
frontend/js/api.js - Session handling
frontend/js/ui/auth.js - Web configuration
frontend/js/config.js
API and access
- FastAPI application
backend/app/main.py - Authentication routes
backend/app/routers/auth.py - User management
backend/app/modules/users
Competition operations
- Leagues and seasons
backend/app/modules/leagues - Tournament draws
backend/app/modules/tournaments - Matches and results
backend/app/modules/matches - Officials and assignments
backend/app/modules/officials - Standings and statistics
backend/app/modules/standings
Marketplace and promotion
- Marketplace
backend/app/modules/marketplace - Orders
backend/app/modules/orders - Payments and commissions
backend/app/modules/payments - Campaign management
backend/app/modules/campaigns - Ad eligibility
backend/app/modules/advertisements/service.py - Sponsor directory
backend/app/modules/sponsors
Shared platform
- Analytics
backend/app/modules/analytics - Gallery and media
backend/app/modules/gallery - Audit logging
backend/app/modules/audit/service.py - Supabase data services
backend/app/database/supabase.py - Supabase file storage
backend/app/intergrations.py/storage.py
Other components
- Platform user
- Supabase
Connections 27
- Platform user → Public pages and dashboards: uses
README.md - Public pages and dashboards → API client: requests data
README.md - Public pages and dashboards → Session handling: uses sessions
frontend/js/pages/admin-dashboard.js - API client → Web configuration: reads endpoints
frontend/js/api.js - API client → FastAPI application: sends HTTP requests
README.md - FastAPI application → Authentication routes: mounts routes
backend/app/main.py - FastAPI application → Leagues and seasons: mounts module routes
backend/app/main.py - Platform user → User management: manages account
- Platform user → Leagues and seasons: follows competitions
- Platform user → Tournament draws: manages draws
- Platform user → Matches and results: views and submits results
- Platform user → Officials and assignments: coordinates officials
backend/app/modules/officials/router.py - Platform user → Marketplace: shops
- Platform user → Orders: manages orders
- Platform user → Campaign management: manages campaigns
- Platform user → Sponsor directory: views sponsors
- Leagues and seasons → Supabase data services: reads and writes
backend/app/modules/leagues/router.py - Leagues and seasons → Standings and statistics: exposes standings
backend/app/modules/leagues/router.py - Officials and assignments → Tournament draws: assigns officials
backend/app/modules/officials/router.py - Gallery and media → Supabase file storage: uploads media
backend/app/modules/gallery/router.py - Supabase file storage → Supabase data services: uses client
backend/app/intergrations.py/storage.py - Supabase data services → Supabase: connects to
backend/app/database/supabase.py - Campaign management → Audit logging: records changes
backend/app/modules/campaigns/service.py - Ad eligibility → Audit logging: records changes
backend/app/modules/advertisements/service.py - Analytics → Supabase data services: accesses data
backend/app/modules/analytics/repository.py - Orders → Payments and commissions: payment workflow
- Matches and results → Standings and statistics: updates results