How hasanulhasan/teaching-torch works
Main Components
A. Frontend Layer:
• Next.js Application (Client-Side)
• Public Routes (/courses, /login, /signup, /feedback)
• Protected Routes ((withlayout) for admin and user profiles)
• Components Structure (Home, Course, Auth, UI components)
• State Management (Redux Store)
• Features (user, products, orders, feedback)
• API Slices
• Filter Management
B. Backend Layer:
• Node.js/Express.js Server
• MongoDB Database
• Authentication System (Firebase)
[Client Layer]
• ↕
[API/Backend Layer]
• ↕
[Data Layer]
Detailed Component Breakdown
Client Layer (Top):
┌─────────────────────────────────────────────┐
• Next.js Frontend │
• ┬──────────────┬───────────┤
• Public Routes │ Auth Routes │ Protected │
• Home │ - Login │ - Admin │
• Courses │ - Signup │ - Profile │
• ┴──────────────┴───────────┘
State Management (Middle):
┌─────────────────────────────────────────────┐
• Redux Store │
• ┬────────────────┬────────────┤
• User Slice │ Product API │ Order API │
• Filter Slice │ Feedback API │ User API │
• ┴────────────────┴────────────┘
Backend Services (Bottom):
┌─────────────────────────────────────────────┐
• Backend Services │
• ┬────────────────┬────────────┤
• Firebase │ Express.js │ MongoDB │
• Auth │ API Server │ Database │
• ┴────────────────┴────────────┘
Important Flows to Highlight
• User Authentication Flow
• Course Management Flow
• Order Processing Flow
• Feedback System Flow
Additional Elements
• Separation between public and protected routes
• Integration points with Firebase
• API endpoints and their relationships
Technical Details to Note
• TypeScript implementation across both frontend and backend
• RTK Query for API management
• Ant Design and Tailwind CSS for UI
• MongoDB with Mongoose for data modeling
• Firebase for authentication
Remember to indicate the responsive nature of the application and how the different user roles (admin/user) interact with the system differently.