How shaiinarab/pabetoop-league works
Pabetoop League is a server-rendered competition platform for youth leagues. Visitors browse age-group and competition pages; administrators manage seasons, clubs, teams, competitions, fixtures, results, imports, backups, and audit history. The main workflow runs from browser requests through the Go web server and feature handlers to the SQLite-backed store, with standings and import validation handled by domain packages. The README documents these major capabilities; some handler-to-handler details are not shown in the sampled excerpts, so uncertain links are omitted.
Main entry points: server.go HTTP application · store.go Data store · import_handlers.go Fixture import workflow · jalali.go Jalali calendar
Components 23
Server runtime
- Server entrypoint
cmd/server/main.go - HTTP application
internal/web/server.go - Sessions and security
internal/web/security.go
Competition operations
- Public pages
internal/web/public_handlers.go - Admin management
internal/web/admin_handlers.go - Season management
internal/web/season_handlers.go - Competition registration
internal/web/competition_handlers.go - Fixture management
internal/web/fixture_handlers.go - Fixture import workflow
internal/web/import_handlers.go - Result entry
internal/web/result_handlers.go - Audit history
internal/web/audit_handlers.go - Backup and status
internal/web/backup_handlers.go
Domain logic
- CSV parsing
internal/import/parser.go - Import validation
internal/import/validate.go - Standings engine
internal/standing/standing.go - Jalali calendar
internal/jalali/jalali.go
Presentation and identity
- White-label identity
internal/site/site.go - HTML rendering
internal/web/render.go - HTMX enhancement
web/static/js/app.ts
Persistence
- Data store
internal/store/store.go - SQLite database
Other components
- Public visitor
- Administrator
Connections 37
- Public visitor → HTTP application: browses
README.md - Administrator → HTTP application: administers
README.md - Server entrypoint → Data store: opens and migrates
cmd/server/main.go - Server entrypoint → HTTP application: starts
cmd/server/main.go - HTTP application → White-label identity: configures identity
internal/web/server.go - HTTP application → Data store: uses
internal/web/server.go - HTTP application → Sessions and security: applies protections
- HTTP application → Public pages: routes public requests
README.md - HTTP application → Admin management: routes admin requests
README.md - HTTP application → Season management: routes admin requests
- HTTP application → Competition registration: routes admin requests
- HTTP application → Fixture management: routes admin requests
- HTTP application → Fixture import workflow: routes admin requests
- HTTP application → Result entry: routes admin requests
- HTTP application → Audit history: routes admin requests
- HTTP application → Backup and status: routes admin requests
- Public pages → Data store: reads league data
internal/web/public_handlers.go - Public pages → Standings engine: computes tables
internal/web/public_handlers.go - Admin management → Data store: manages clubs and teams
internal/web/admin_handlers.go - Season management → Data store: manages seasons
internal/web/season_handlers.go - Season management → Jalali calendar: formats dates
internal/web/season_handlers.go - Competition registration → Data store: manages competitions
internal/web/competition_handlers.go - Fixture management → Data store: manages fixtures
internal/web/fixture_handlers.go - Fixture management → Jalali calendar: formats dates
internal/web/fixture_handlers.go - Fixture import workflow → CSV parsing: parses uploads
internal/web/import_handlers.go - Fixture import workflow → Import validation: validates rows
internal/web/import_handlers.go - Fixture import workflow → Data store: imports confirmed fixtures
internal/web/import_handlers.go - CSV parsing → Jalali calendar: parses dates
internal/import/parser.go - Import validation → Jalali calendar: formats digits
internal/import/validate.go - Result entry → Data store: reads and saves results
internal/web/result_handlers.go - Result entry → Standings engine: computes tables
internal/web/result_handlers.go - Audit history → Data store: reads audit records
internal/web/audit_handlers.go - Backup and status → Data store: backs up data
- Data store → SQLite database: reads and writes
README.md - HTTP application → HTML rendering: renders HTML
README.md - HTTP application → White-label identity: resolves interface identity
internal/web/server.go - HTMX enhancement → HTTP application: enhances interactions
README.md