How joel1-coder/rasi-maths-tution-centre works
Rasi Maths is an education and tuition portal with public-facing pages, student and family information, learning resources, and administrative management. The browser enters through the routed Home or SiteAdmin experience; its client is configured to call the server’s tRPC endpoint. Server procedures enforce access rules and delegate domain operations to database helpers, while separate routes handle OAuth, uploads, and system notifications. The schema shows distinct academic and student-record domains. README documentation was absent, and several major UI and service files were not sampled, so their internal interactions are not inferred.
Main entry points: App.tsx App routes · index.ts HTTP server · routers.ts tRPC procedures · db.ts Domain data access
Components 19
Client experience
- Client bootstrap
client/src/main.tsx - App routes
client/src/App.tsx - Portal pages
client/src/pages/Home.tsx - Portfolio
client/src/pages/Portfolio.tsx - Site admin
client/src/pages/SiteAdmin.tsx
API and domain
- HTTP server
server/_core/index.ts - tRPC procedures
server/routers.ts - System procedures
server/_core/systemRouter.ts - Cloudinary procedures
server/cloudinaryRouter.ts - Request context
server/_core/context.ts
Identity and integrations
- Cloudinary operations
server/cloudinary.ts - Owner notifications
server/_core/notification.ts - OAuth routes
server/_core/oauth.ts - Auth SDK
server/_core/sdk.ts
Persistence
- Domain data access
server/db.ts - Education schema
drizzle/schema.ts - PostgreSQL
Other components
- Portal user
- OAuth service
Connections 21
- Portal user → Client bootstrap: opens
client/src/main.tsx - Client bootstrap → App routes: renders
client/src/main.tsx - App routes → Portal pages: routes to
client/src/App.tsx - App routes → Site admin: routes to
client/src/App.tsx - App routes → Portfolio: routes to
- Portal pages → Portfolio: references
client/src/pages/Home.tsx - Client bootstrap → HTTP server: calls tRPC
client/src/main.tsx - HTTP server → tRPC procedures: mounts
server/_core/index.ts - HTTP server → Request context: creates context
server/_core/index.ts - HTTP server → OAuth routes: registers routes
server/_core/index.ts - tRPC procedures → Domain data access: calls
server/routers.ts - tRPC procedures → System procedures: dispatches
server/routers.ts - tRPC procedures → Cloudinary procedures: dispatches
server/routers.ts - System procedures → Owner notifications: notifies
server/_core/systemRouter.ts - Cloudinary procedures → Cloudinary operations: uploads and transforms
server/cloudinaryRouter.ts - Request context → Auth SDK: uses
server/_core/context.ts - Request context → Domain data access: reads user data
server/_core/context.ts - OAuth routes → Auth SDK: uses
server/_core/oauth.ts - Auth SDK → OAuth service: exchanges tokens
server/_core/sdk.ts - Domain data access → Education schema: queries
server/db.ts - Domain data access → PostgreSQL: reads and writes
server/db.ts