How giancbaring/sslg works
The repository is a school learner-government portal for account access and governance information, including dashboards, officers, documents, events, news, projects, and treasury pages. The visible account flow includes login, optional email binding, profile updates, and admin account creation. Source excerpts confirm several client API calls and the app’s explicit routes; wiring for other listed pages and backend endpoints is not shown, so those relationships are left out.
Main entry points: App.tsx Application routes · main.tsx Client entry · LoginPage.tsx Login page · BindEmailPage.tsx Email binding page
Components 23
Portal client
- Client entry
governance-portal/src/main.tsx - Application routes
governance-portal/src/App.tsx
Governance information
- Home and news
governance-portal/src/pages/HomePage.tsx - Dashboard
governance-portal/src/pages/DashboardPage.tsx - Officers
governance-portal/src/pages/OfficersPage.tsx - Documents
governance-portal/src/pages/DocumentsPage.tsx - Events
governance-portal/src/pages/EventsPage.tsx - News
governance-portal/src/pages/NewsPage.tsx - Projects
governance-portal/src/pages/ProjectsPage.tsx - Treasury
governance-portal/src/pages/TreasuryPage.tsx - Admin dashboard
governance-portal/src/pages/AdminDashboardPage.tsx
Account services
- Login page
governance-portal/src/pages/LoginPage.tsx - Email binding page
governance-portal/src/pages/BindEmailPage.tsx - Profile page
governance-portal/src/pages/ProfilePage.tsx - Create-user form
governance-portal/src/components/CreateUserForm.tsx - Profile form
governance-portal/src/components/ProfileForm.tsx
API handlers
- Login handler
governance-portal/functions/api/login.js - Email binding handler
governance-portal/functions/api/bind-email.js - User creation handler
governance-portal/functions/api/create-user.js - Profile update handler
governance-portal/functions/api/update-profile.js - Authentication middleware
governance-portal/functions/api/authMiddleware.js - Dashboard stats handler
governance-portal/functions/api/dashboard-stats.js
Other components
- Portal visitor
Connections 12
- Portal visitor → Client entry: opens portal
- Client entry → Application routes: renders
- Application routes → Login page: routes to
- Application routes → Dashboard: routes to
- Application routes → Officers: routes to
- Application routes → Documents: routes to
- Application routes → Events: routes to
- Application routes → Profile page: routes to
- Login page → Login handler: submits credentials
- Email binding page → Email binding handler: submits email
- Create-user form → User creation handler: creates account
- Profile form → Profile update handler: updates profile