How mobarrio/sanfra-movilidad works
Vértice Playlist is a web application for managing personal video collections and publishing public playlists. Administrators sign in, create playlists and sections, add or import YouTube videos, and edit or reorder content; visitors browse public collections and play embedded videos. The Go server routes requests through authentication and handlers to SQLite. The README documents CSV bulk import, user/role management, and branding configuration. Some handler wiring is inferred from route registration and documented capabilities because the source excerpts are partial.
Main entry points: main.go HTTP server · handlers.go API handlers · store.go Store and setup · playlist.js Playlist viewer
Components 13
Web interfaces
- Admin console
web/admin.js - Public catalog
web/public.js - Playlist viewer
web/playlist.js
Go application
- HTTP server
main.go - API handlers
handlers.go - Domain models
models.go - Description sanitizer
sanitize.go
Identity and access
- JWT and RBAC
auth.go
Persistent data
- Store and setup
store.go - SQLite database
Other components
- Administrator
- Visitor
- YouTube embeds
Connections 17
- Administrator → Admin console: manages content
- Visitor → Public catalog: browses playlists
- Admin console → HTTP server: HTTP requests
- Public catalog → HTTP server: fetches catalog
- Playlist viewer → HTTP server: fetches playlist
- HTTP server → API handlers: dispatches routes
- HTTP server → Store and setup: initializes store
- HTTP server → Admin console: serves admin page
- HTTP server → Public catalog: serves public page
- HTTP server → Playlist viewer: serves playlist page
- API handlers → JWT and RBAC: authenticates requests
- API handlers → Store and setup: reads and writes
- JWT and RBAC → Store and setup: checks identities
- Store and setup → SQLite database: reads and writes
- API handlers → Description sanitizer: sanitizes descriptions
- Playlist viewer → YouTube embeds: embeds videos
- API handlers → Domain models: uses domain data