How diogotocci/pelada-manager works
Pelada Manager organizes pickup-game groups: users sign in, create or join a pelada, manage members and players, mark attendance, and request balanced teams. The Flask app is the API and orchestration layer; browser modules drive the workflows, PostgreSQL persists application data, and a dedicated balancing service computes teams. The README only documents running the app, so feature detail comes from the supplied source excerpts and client help text; unsampled routes and storage behavior are represented conservatively.
Main entry points: app.py Flask routes · api.js API requests · postgres_storage.py PostgreSQL storage · auth.js Google session
Components 18
Web client
- Web app
templates/index.html - Pelada and players
static/js/players.js - Attendance and teams
static/js/teams.js - Google session
static/js/auth.js - Invites and members
static/js/invites.js - Admin tools
static/js/admin.js - Team comparison
static/js/compare.js - API requests
static/js/api.js - UI and help
static/js/ui.js - Offline shell
templates/sw.js
Application API
- Flask routes
app.py - Deployment entry
api/index.py
Game domain
- Player model
models.py - Team balancing
services/team_balancer.py
Persistence
- PostgreSQL storage
storage/postgres_storage.py
Other components
- Participant
- Google identity
- PostgreSQL
Connections 18
- Participant → Web app: uses
- Web app → Pelada and players: loads
- Pelada and players → API requests: requests
static/js/players.js - Attendance and teams → API requests: requests
static/js/teams.js - Invites and members → API requests: requests
static/js/invites.js - Google session → Flask routes: validates session
static/js/auth.js - Google session → Google identity: authenticates with
static/js/auth.js - Invites and members → Google session: checks session
static/js/invites.js - Admin tools → API requests: requests
- Team comparison → Attendance and teams: compares results
- API requests → Flask routes: calls API
- Deployment entry → Flask routes: exports app
api/index.py - Flask routes → PostgreSQL storage: reads and writes
app.py - Flask routes → Team balancing: balances teams
app.py - Team balancing → Player model: uses player model
services/team_balancer.py - PostgreSQL storage → Player model: maps players
storage/postgres_storage.py - PostgreSQL storage → PostgreSQL: queries
- Offline shell → Web app: caches shell
templates/sw.js