How edraithenni/totallyguysproject works
This is a Go/Gin backend for a movie-playlist social app. Requests enter through the API server, pass authentication where required, and reach handlers for movie discovery, accounts, playlists, reviews, threaded comments, follows, and moderation; handlers use PostgreSQL-backed models and some publish WebSocket notifications. The README also documents OMDb movie lookup and admin content controls. The graph includes those documented capabilities, while unsampled handler details are represented at their exact directory path; edges are limited to relationships visible in excerpts or README statements.
Main entry points: server.go HTTP routing · wshub.go Live notifications · main.go Server bootstrap · admin_handlers.go Admin controls
Components 18
API runtime
- Server bootstrap
cmd/server/main.go - HTTP routing
internal/server/server.go
Identity and moderation
- Authentication
internal/handlers/auth.go - JWT middleware
internal/handlers/auth_middleware.go - Admin controls
internal/handlers/admin_handlers.go - Ban registry
internal/banned/banned.go
Movie collections
- Movie search
internal/handlers/movie.go - Playlists
internal/handlers/playlists.go
Social discussions
- User profiles
internal/handlers/user.go - User follows
internal/handlers/follow.go - Movie reviews
internal/handlers/reviews.go - Review discussions
internal/handlers/comments.go
Persistence and events
- Database setup
internal/database/database.go - Domain models
internal/models/models.go - PostgreSQL
- Live notifications
internal/ws/wshub.go
Other components
- API client
- OMDb API
Connections 29
- API client → HTTP routing: sends requests
README.md - Server bootstrap → Database setup: initializes database
cmd/server/main.go - Server bootstrap → HTTP routing: starts server
cmd/server/main.go - HTTP routing → Authentication: routes auth
internal/server/server.go - HTTP routing → JWT middleware: applies middleware
internal/server/server.go - HTTP routing → Admin controls: routes admin
internal/server/server.go - HTTP routing → Movie search: routes movies
internal/server/server.go - HTTP routing → Playlists: routes playlists
internal/server/server.go - HTTP routing → Movie reviews: routes reviews
internal/server/server.go - HTTP routing → Review discussions: routes discussions
README.md - HTTP routing → User follows: routes follows
README.md - HTTP routing → User profiles: routes profiles
internal/server/server.go - HTTP routing → Live notifications: upgrades connection
internal/server/server.go - JWT middleware → Authentication: validates tokens
internal/handlers/auth_middleware.go - Admin controls → Ban registry: bans users
internal/handlers/admin_handlers.go - Movie search → OMDb API: fetches movie data
README.md - Authentication → Live notifications: notifies users
README.md - Movie reviews → Live notifications: publishes updates
internal/handlers/reviews.go - Admin controls → Live notifications: sends notices
internal/handlers/admin_handlers.go - Server bootstrap → Domain models: loads ban state
cmd/server/main.go - Database setup → Domain models: migrates schema
internal/database/database.go - Database setup → PostgreSQL: opens connection
internal/database/database.go - Movie search → PostgreSQL: reads and writes
- Playlists → PostgreSQL: reads and writes
- Movie reviews → PostgreSQL: reads and writes
internal/handlers/reviews.go - Review discussions → PostgreSQL: reads and writes
- User profiles → PostgreSQL: reads and writes
- User follows → PostgreSQL: reads and writes
- Live notifications → PostgreSQL: persists notifications
internal/ws/wshub.go