How 13d4c/workshop-it-kmitl-cloud-computing-deployment-website-production works
This is an IT KMITL activity and workshop registration portal. Visitors discover activities, create an account or sign in, inspect activity details, register, review their registrations, and cancel them. The backend exposes Fiber API routes for authentication, activity browsing, and registration, with PostgreSQL-backed models. The sampled frontend shows account state and activity browsing; detail and registration pages exist in the tree, but their implementation links are not fully evidenced here. Connections are limited to shown calls and route registrations.
Main entry points: routes.go API routing · database.go PostgreSQL access · main.go API startup · +page.svelte Activity browser
Components 20
Portal interface
- Portal landing
frontend/src/routes/+page.svelte - Activity browser
frontend/src/routes/home/+page.svelte - Activity details
frontend/src/routes/activity/[id]/+page.svelte - Account signup
frontend/src/routes/register/+page.svelte - Sign in
frontend/src/routes/login/+page.svelte - Activity card
frontend/src/lib/components/ActivityCard.svelte
Accounts and access
- Auth state
frontend/src/lib/stores/auth.js - API client
frontend/src/lib/utils/api.js - Auth endpoints
backend/internal/handlers/auth.go - JWT protection
backend/internal/middleware/jwt.go - User records
backend/internal/models/user.go
Activity registration
- Activity endpoints
backend/internal/handlers/activity.go - Activity records
backend/internal/models/activity.go - Registration endpoints
backend/internal/handlers/registration.go - Registration records
backend/internal/models/registration.go
API and persistence
- API startup
backend/cmd/main.go - API configuration
backend/internal/config/config.go - API routing
backend/internal/routes/routes.go - PostgreSQL access
backend/internal/database/database.go
Other components
- Visitor or student
Connections 20
- Visitor or student → Portal landing: opens portal
frontend/src/routes/+page.svelte - Visitor or student → Account signup: creates account
frontend/src/routes/register/+page.svelte - Visitor or student → Sign in: signs in
- Visitor or student → Activity browser: browses activities
frontend/src/routes/home/+page.svelte - Activity browser → Activity card: renders
frontend/src/routes/home/+page.svelte - Account signup → Auth state: registers through
frontend/src/routes/register/+page.svelte - Auth state → API client: calls
frontend/src/lib/stores/auth.js - Activity browser → API client: loads and cancels
frontend/src/routes/home/+page.svelte - API startup → API configuration: loads
backend/cmd/main.go - API startup → PostgreSQL access: connects and seeds
backend/cmd/main.go - API startup → API routing: sets up
backend/cmd/main.go - API routing → Auth endpoints: routes auth
backend/internal/routes/routes.go - API routing → Activity endpoints: routes activities
backend/internal/routes/routes.go - API routing → Registration endpoints: routes registrations
backend/internal/routes/routes.go - API routing → JWT protection: protects routes
backend/internal/routes/routes.go - Auth endpoints → PostgreSQL access: queries users
backend/internal/handlers/auth.go - Auth endpoints → JWT protection: generates tokens
backend/internal/handlers/auth.go - PostgreSQL access → User records: migrates
backend/internal/database/database.go - PostgreSQL access → Activity records: migrates and seeds
backend/internal/database/database.go - PostgreSQL access → Registration records: migrates
backend/internal/database/database.go