How domainexpansion26/techguild_backend works
TechGuild Backend is a Go API for a platform with user accounts, profiles, parties, projects, quests, and client task management. The principal workflow is an API request routed to a controller, which invokes domain logic and (for sampled authentication code) persists account or session state. The startup file registers the route families; sampled routes and handlers show profile and party dispatch. Many domain handlers and repositories are unsampled, so their internal links are omitted or marked unverified rather than inferred.
Main entry points: main.go HTTP Server · auth_routes.go Identity Routes · oauth_controller.go OAuth Handlers · auth_service.go Auth Service
Components 22
API Runtime
- HTTP Server
backend/cmd/server/main.go - Identity Routes
backend/src/routes/auth_routes.go - Profile Routes
backend/src/routes/profile_routes.go - Party Routes
backend/src/routes/party_routes.go - Work Routes
backend/src/routes/task_management_routes.go - Other Domain Routes
backend/src/routes
Identity & Profiles
- Auth Handlers
backend/src/controllers/auth_controller.go - OAuth Handlers
backend/src/controllers/oauth_controller.go - Profile Handlers
backend/src/controllers/profile_controller.go - Auth Service
backend/src/services/auth_service.go - OAuth Service
backend/src/services/oauth_service.go - Profile Service
backend/src/services/profile_service.go
Platform Workflows
- Party Handlers
backend/src/controllers/party_controller.go - Work Handlers
backend/src/controllers - Party Service
backend/src/services/party_services.go - Work Services
backend/src/services
Persistence
- User Repository
backend/src/repository/user_repository.go - Domain Repositories
backend/src/repository - PostgreSQL
backend/src/database/postgres/postgres.go - Redis
Other components
- API Client
- OAuth Providers
Connections 25
- API Client → HTTP Server: sends requests
- HTTP Server → Identity Routes: registers routes
backend/cmd/server/main.go - HTTP Server → Profile Routes: registers routes
backend/cmd/server/main.go - HTTP Server → Party Routes: registers routes
backend/cmd/server/main.go - HTTP Server → Work Routes: registers routes
backend/cmd/server/main.go - HTTP Server → Other Domain Routes: registers routes
backend/cmd/server/main.go - Identity Routes → Auth Handlers: dispatches to
- Identity Routes → OAuth Handlers: dispatches to
- Profile Routes → Profile Handlers: dispatches to
backend/src/routes/profile_routes.go - Party Routes → Party Handlers: dispatches to
backend/src/routes/party_routes.go - Work Routes → Work Handlers: dispatches to
- Other Domain Routes → Work Handlers: dispatches to
- Auth Handlers → Auth Service: delegates to
- OAuth Handlers → OAuth Service: delegates to
- Profile Handlers → Profile Service: calls
backend/src/controllers/profile_controller.go - Party Handlers → Party Service: calls
backend/src/controllers/party_controller.go - Work Handlers → Work Services: delegates to
- Auth Service → User Repository: uses
backend/src/services/auth_service.go - OAuth Service → User Repository: uses
backend/src/services/oauth_service.go - Auth Service → Redis: uses verification cache
backend/src/services/auth_service.go - User Repository → PostgreSQL: uses database
backend/src/repository/user_repository.go - Profile Service → Domain Repositories: persists profile data
- Party Service → Domain Repositories: persists party data
- Work Services → Domain Repositories: uses repositories
- OAuth Handlers → OAuth Providers: fetches provider identity
backend/src/controllers/oauth_controller.go