How namansehwal/genai-integrated-lms works
Main Components
A. Frontend Layer (React-based):
• Sub-components:
• User Interface Components (/components)
• Pages (/pages)
• State Management (Redux - indicated by /store)
• Authentication (Firebase - indicated by firebase.js)
B. Backend Layer (Python):
• Two main sub-systems:
1. AI Services (/apis/gen_ai):
• Chatbot
• Code Explanation
• Notes Generator
• Video Summary
2. Core LMS Services (/apis/non_gen_ai):
• Courses
• Lectures
• Assignments
• Programming Assignments
C. External Services:
• Ollama AI Service (Qwen-2-0.5B model)
• MongoDB Database (indicated by /model/mongo_utility.py)
• Firebase Authentication
Component Relationships
• Frontend → Backend API (RESTful communication)
• Backend → MongoDB (data persistence)
• Backend → Ollama AI (AI processing)
• Frontend → Firebase (authentication)
Specific Implementation Details
A. Frontend Architecture:
• React components hierarchy
• Redux store for state management
• Authentication flow with Firebase
• API integration points (api.js)
B. Backend Architecture:
• Separate Gen AI and Non-Gen AI APIs
• Database connection layer
• Configuration and utility services
• LLM integration points
Data Flow Indicators
• User authentication flow
• API requests/responses
• Database operations
• AI model interactions
Additional Elements
• Configuration management
• API documentation (api_documentation.yaml)
• Development tools (Vite, Tailwind)
Technical Stack Indicators
• React/Vite (Frontend)
• Python (Backend)
• MongoDB (Database)
• Ollama/Qwen-2-0.5B (AI Model)
• Firebase (Authentication)