How trap-jp/hackathon26spring_05 works
Qpid is a profile-based social matching application: users sign in, maintain a profile, receive suggestions, and act on other users with likes or nopes. Its Vue interface routes users through profile, matching, and likes views; the Go API authenticates requests, handles domain operations, and uses repository interfaces with production database and local mock implementations. Profile, icon, suggestion, and traQ-related capabilities are represented where supported by routes or source-index references. Several feature implementations were not excerpted, so uncertain internal calls are omitted.
Main entry points: handler HTTP route handlers · index.ts Page routing · repository.go Repository contracts · api.ts API fetch helper
Components 22
User interface
- Vue app shell
Qpid-UI/src/App.vue - Page routing
Qpid-UI/src/router/index.ts - Profile editor
Qpid-UI/src/components/Myself.vue - Matching views
Qpid-UI/src/components/Matching.vue - Mobile matching
Qpid-UI/src/components/Matching_Mobile.vue - Likes view
Qpid-UI/src/components/Likes.vue - Login view
Qpid-UI/src/components/Login.vue - Navigation header
Qpid-UI/src/components/Header.vue - API fetch helper
Qpid-UI/src/api.ts - Update checker
Qpid-UI/src/update-checker.ts
API and identity
- HTTP route handlers
Qpid/handler - Authentication middleware
Qpid/handler/middleware/auth.go - traQ integration
Qpid/handler/traq.go - Backend startup
Qpid/main.go
Matching domain
- User profiles
Qpid/domain/user.go - Suggestions
Qpid/domain/suggestion.go - Like and nope actions
Qpid/repository/action_repository.go
Persistence
- Repository contracts
Qpid/repository/repository.go - SQL repositories
Qpid/infrastructure - Local mock repository
Qpid/repository - Application database
Qpid/infrastructure/db.go
Other components
- User
Connections 24
- User → Vue app shell: uses
Qpid-UI/src/App.vue - Vue app shell → Navigation header: renders
Qpid-UI/src/App.vue - Vue app shell → Page routing: displays routed view
- Page routing → Profile editor: routes to
Qpid-UI/src/router/index.ts - Page routing → Likes view: routes to
Qpid-UI/src/router/index.ts - Page routing → Login view: routes to
Qpid-UI/src/router/index.ts - Page routing → Matching views: routes to
- Matching views → Mobile matching: uses
- Profile editor → API fetch helper: calls
Qpid-UI/src/components/Myself.vue - Matching views → API fetch helper: calls
Qpid-UI/src/components/Matching.vue - Mobile matching → API fetch helper: calls
Qpid-UI/src/components/Matching_Mobile.vue - API fetch helper → HTTP route handlers: requests API
- Backend startup → HTTP route handlers: starts
Qpid/main.go - HTTP route handlers → Authentication middleware: registers middleware
Qpid/handler/handler.go - HTTP route handlers → Repository contracts: uses
Qpid/handler/handler.go - HTTP route handlers → traQ integration: uses client
Qpid/handler/handler.go - Authentication middleware → Repository contracts: checks user
Qpid/handler/middleware/auth.go - HTTP route handlers → User profiles: handles profile
Qpid/handler/me.go - HTTP route handlers → Suggestions: serves suggestions
- HTTP route handlers → Like and nope actions: serves likes
- Repository contracts → SQL repositories: implemented by
Qpid/infrastructure/repository.go - Repository contracts → Local mock repository: implemented by
- SQL repositories → Application database: reads and writes
Qpid/infrastructure/user_repository.go - Update checker → User: notifies