How chinmaykhamkar/lor works
Main Components
A. Frontend (React.js):
• Sub-components:
• Public Components (Navigation, Common Elements)
• Student Module (Screens, Routes)
• Teacher Module (Screens, Routes)
• Authentication Views (Login/Register/Reset)
B. Backend (Node.js):
• Sub-components:
• API Routes Layer
• Controllers Layer
• Middleware Layer
• Models Layer
C. External Services:
• Database (MongoDB)
• Email Service (SendGrid)
• Hosting Services (Heroku for backend, Vercel for frontend)
Component Relationships
• Frontend → Backend (REST API calls)
• Backend → MongoDB (Data persistence)
• Backend → SendGrid (Email notifications)
• User → Frontend (Client interactions)
Detailed Component Breakdown
A. Frontend Architecture:
Client
• Public Components
• Navigation
• Common UI Elements
• Student Module
• Routes (Home, Profile, Teachers, University)
• Screens (Login, Register, Dashboard)
• Teacher Module
• Routes (Home, Profile, Students, Requests)
• Screens (Login, Register, Dashboard)
B. Backend Architecture:
Server
• Routes Layer (API Endpoints)
• Student Routes
• Teacher Routes
• Controllers
• Student Controllers
• Teacher Controllers
• Middleware
• Authentication
• Error Handling
• Models
• Student Schema
• Teacher Schema
Additional Elements
• Data flow indicators
• API endpoint groupings
• Security middleware placement
• Error handling flow
Key Architectural Patterns to Highlight
• MVC pattern in backend
• Component-based architecture in React
• RESTful API structure
• JWT authentication flow
• Middleware pipeline
[User/Browser] → [Frontend (Vercel)]
• ↓
[Authentication Layer] ← → [Backend (Heroku)] ← → [MongoDB]
• ↓
• [SendGrid Email]