How muhsar27/pointbox-ui works
Pointbox UI is a small Go web app for viewing members and adding, removing, or adjusting their points. Requests are dispatched by the HTTP server to handlers in main.go; handlers render templates or update an in-memory member map, then redirect where appropriate. Startup also opens and pings MySQL, but the sampled handlers use the in-memory map rather than database persistence. The tree shows templates and CSS; no README or source evidence describes additional capabilities.
Main entry points: main.go HTTP server · db.go Open database · style.css Static CSS · home.html Home template
Components 15
Web interface
- HTTP server
main.go - Home handler
main.go - Add form handler
main.go - Static CSS
static/style.css - Home template
template/home.html - Add-member template
template/addmember.html
Member points
- Create member
main.go - Add points
main.go - Remove points
main.go - Delete member
main.go - In-memory members
main.go
Startup integration
- Application startup
main.go - Open database
db.go
Other components
- Browser user
- MySQL service
Connections 22
- Browser user → HTTP server: sends requests
- HTTP server → Home handler: dispatches GET /
- HTTP server → Add form handler: dispatches GET /add
- HTTP server → Create member: dispatches POST /add
- HTTP server → Add points: dispatches point POST
- HTTP server → Remove points: dispatches point POST
- HTTP server → Delete member: dispatches POST /delete
- HTTP server → Static CSS: serves files
- Home handler → In-memory members: reads
- Home handler → Home template: renders
- Add form handler → Add-member template: renders
- Create member → In-memory members: writes
- Add points → In-memory members: reads and writes
- Remove points → In-memory members: reads and writes
- Delete member → In-memory members: deletes from
- Create member → Browser user: redirects
- Add points → Browser user: redirects
- Remove points → Browser user: redirects
- Delete member → Browser user: redirects
- Application startup → Open database: opens connection
- Open database → MySQL service: pings
- Application startup → HTTP server: starts listener