How san2021331091/educonnect works
EduConnect is a student collaboration platform with web and desktop clients, a Go backend, and documented AI, resource-sharing, and administration capabilities. The main user workflow is signing in or creating an account, entering or creating a study server, then collaborating through server channels. The sampled code shows Supabase authentication, Fiber API calls, and server-image upload; the README documents broader AI and resource features. Several route, controller, and integration implementations were not sampled, so those links are shown only where documentation supports them.
Main entry points: routes.go Fiber API routes · [serverId] Server workspace · models Backend data models · InitialModals.tsx Server onboarding
Components 30
Client experience
- Server workspace
app/(main)/(routes)/servers/[serverId] - Server navigation
components/navigation/navigation-sidebar.tsx - Text channel
components/channels/TextChannel.tsx - Audio channel
components/channels/AudioChannel.tsx - Video channel
components/channels/VideoChannel.tsx - Student profiles
app/(profiles)/(routes)/profile/[profileId] - Server invites
app/(invite)/(routes)/invite/[inviteCode]/page.tsx - Server and user models
app/model - Server fetch helpers
app/utils/fetchServers.ts - Desktop shell
electron/main.ts
Identity and setup
- Sign-in and signup
app/(auth)/(routes) - Auth helpers
auth/auth.ts - Supabase Auth
supabase/supabase-client.ts - Server onboarding
components/modals/InitialModals.tsx
Go backend
- Fiber API routes
backend/routes/routes.go - Server controller
backend/controllers/server_controller.go - Channel controller
backend/controllers/channel_controller.go - Member controller
backend/controllers/member_controller.go - Profile controller
backend/controllers/profile_controller.go - Text WebSocket
backend/realtime/text_ws.go - Voice WebSocket
backend/realtime/voice_ws.go - Video WebSocket
backend/realtime/video_ws.go - Backend data models
backend/models - PostgreSQL
Learning services
- AI learning tools
- CX Genie
- Shared study resources
- Cloudinary storage
Administration
- Directus admin
Other components
- Student
Connections 36
- Student → Sign-in and signup: starts session
- Sign-in and signup → Auth helpers: authenticates with
app/(auth)/(routes)/sign-in/[[...sign-in]]/SignClient.tsx - Auth helpers → Supabase Auth: calls auth
auth/auth.ts - Sign-in and signup → Fiber API routes: submits login or signup
app/(auth)/(routes)/sign-up/[[...sign-up]]/SignUpClient.tsx - Student → Server onboarding: creates server
- Server onboarding → Server fetch helpers: checks membership
components/modals/InitialModals.tsx - Server onboarding → Cloudinary storage: uploads image
- Server onboarding → Fiber API routes: creates server
components/modals/InitialModals.tsx - Student → Server workspace: uses workspace
- Server workspace → Server navigation: presents navigation
- Server navigation → Server fetch helpers: loads servers
components/navigation/navigation-sidebar.tsx - Server workspace → Text channel: offers messaging
- Server workspace → Audio channel: offers voice
- Server workspace → Video channel: offers video
- Server workspace → Fiber API routes: uses backend APIs
- Server workspace → Server and user models: uses domain data
- Student → Server invites: joins by invite
- Student → Student profiles: views profile
- Fiber API routes → Server controller: routes server requests
- Fiber API routes → Channel controller: routes channel requests
- Fiber API routes → Member controller: routes member requests
- Fiber API routes → Profile controller: routes profile requests
- Fiber API routes → Text WebSocket: serves messaging sockets
- Fiber API routes → Voice WebSocket: serves voice sockets
- Fiber API routes → Video WebSocket: serves video sockets
- Server controller → Backend data models: uses server data
- Channel controller → Backend data models: uses channel data
- Member controller → Backend data models: uses member data
- Profile controller → Backend data models: uses profile data
- Backend data models → PostgreSQL: persists data
- Student → AI learning tools: requests study help
- AI learning tools → CX Genie: requests AI services
- Student → Shared study resources: shares materials
- Shared study resources → Cloudinary storage: stores media
- Directus admin → PostgreSQL: manages platform data
- Student → Desktop shell: uses desktop app