How rajeevshivah/learn-portal works
Learn Portal is a learning and community platform with courses, episodes, paid access, live events, and a personalized technology feed. Learners enter through the web app, authenticate, browse learning or event offerings, and access content according to enrollment or registration status; administrators manage offerings and approvals. The backend also exposes an MCP interface for phone/web tools. The README documents event registration, paid-event approval gating, and publishing recordings as episodes. Some route and page implementations were not sampled, so their internal relationships are not expanded.
Main entry points: events.js Event workflows · App.jsx Web app routes · server.js API route mounting · tech.js Tech feed API
Components 28
Web experience
- Web app routes
frontend/src/App.jsx - Sign-in state
frontend/src/context/AuthContext.jsx
Learning platform
- Course and episode pages
frontend/src/pages/CourseEpisodes.jsx - Refund information
frontend/src/pages/RefundPolicy.jsx - Course and episode APIs
backend/routes/courses.js - Courses
backend/models/Course.js - Episodes
backend/models/Episode.js - Enrollment access
backend/models/Enrollment.js
Live events
- Event pages
frontend/src/pages/EventDetail.jsx - Event administration
frontend/src/pages/admin/EventsTab.jsx - Event workflows
backend/routes/events.js - Live events
backend/models/LiveEvent.js - Registrations
backend/models/Registration.js - Pricing and coupons
backend/utils/pricing.js
Community and discovery
- Tech discovery
frontend/src/pages/Tech.jsx - Tech feed API
backend/routes/tech.js - Feed aggregation
backend/utils/techFeed.js - Feed items
backend/models/TechItem.js - Discussion workflows
backend/routes/questions.js
Platform services
- API route mounting
backend/server.js - Authentication
backend/routes/auth.js - Request authorization
backend/middleware/auth.js - User accounts
backend/models/User.js - Platform settings
backend/models/Settings.js - MCP tools
backend/mcp/tools.mjs - MCP HTTP adapter
backend/mcp/http.js
Other components
- Learner
- Administrator
Connections 29
- Learner → Web app routes: uses
frontend/src/App.jsx - Administrator → Web app routes: uses
frontend/src/App.jsx - Web app routes → Sign-in state: wraps routes
frontend/src/App.jsx - Web app routes → Event pages: routes to
frontend/src/App.jsx - Web app routes → Course and episode pages: routes to
frontend/src/App.jsx - Web app routes → Refund information: routes to
frontend/src/App.jsx - Authentication → User accounts: reads and updates
backend/routes/auth.js - Request authorization → User accounts: loads account
backend/middleware/auth.js - API route mounting → Authentication: mounts
backend/server.js - API route mounting → Event workflows: mounts
backend/server.js - API route mounting → Tech feed API: mounts
backend/server.js - API route mounting → Discussion workflows: mounts
backend/server.js - Course and episode APIs → Courses: uses
- Course and episode APIs → Episodes: uses
- Course and episode APIs → Enrollment access: uses
- Event workflows → Live events: reads and writes
backend/routes/events.js - Event workflows → Registrations: reads and writes
backend/routes/events.js - Event workflows → Courses: validates course
backend/routes/events.js - Event workflows → Episodes: publishes recording
backend/routes/events.js - Event workflows → Platform settings: reads payment details
backend/routes/events.js - Event workflows → Pricing and coupons: delegates pricing
backend/routes/events.js - Event pages → Event workflows: uses event API
- Event administration → Event workflows: manages events
- Tech feed API → Feed aggregation: uses feed
backend/routes/tech.js - Tech feed API → Feed items: reads and writes
backend/routes/tech.js - Tech feed API → User accounts: uses profiles
backend/routes/tech.js - Tech discovery → Tech feed API: uses tech API
- MCP HTTP adapter → MCP tools: dispatches tools
backend/mcp/http.js - API route mounting → MCP HTTP adapter: mounts
backend/server.js