Skip to content
Raghavender1234Public

About

AI-native, modular Learning Management System (LMS) and assessment platform for institutes, colleges, and self-hosted learners. Built with Python & Flask.

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

76 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸŽ“ OpenLMS: AI-Native, Modular Learning & Assessment Platform

License: MIT or Apache-2.0 Python 3.10+ Flask Docker Contributions Welcome

A modern, lightweight, and AI-native alternative to Moodle and Blackboard.
Built for educational institutions, coaching academies, corporate training teams, and self-hosted individual learners.


🌟 Why OpenLMS?

Traditional Learning Management Systems are often bulky, difficult to deploy, and lack native AI capabilities. OpenLMS solves this with an offline-first, modular architecture that runs on a single laptop with SQLite or scales effortlessly to thousands of concurrent students using PostgreSQL and Docker.

⚑ Key Capabilities

  • 🏒 Multi-Tenant Organization Management: Host multiple colleges, departments, or coaching branches with dedicated subdomains, custom branding, and role-based permissions.
  • 🧠 Built-in Socratic AI Engine:
    • Auto-generates balanced question sets matching specific difficulty criteria.
    • Breaks down complex engineering/scientific problems using intuitive analogies and step-by-step reasoning.
    • Identifies common exam traps and suggests shortcut techniques.
  • πŸ“ Enterprise Assessment Simulator:
    • Complete timed exam simulator with live question palettes, flag-for-review, and auto-submission.
    • Supports single-choice MCQs, Multi-Statement questions, Assertion-Reasoning formats, and Comprehension passages.
    • Full LaTeX / MathJax mathematical formula and equation rendering.
    • Automated grading with negative marking and instant PDF score report generation.
  • πŸ“Š Student Analytics & Progress Heatmaps: Real-time topic mastery tracking, accuracy trends, and personalized revision schedules.
  • πŸ’» Zero Cloud Lock-in: 100% self-hostable with zero mandatory paid cloud dependencies.

πŸ—οΈ Architecture & Roles

               β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
               β”‚                      OpenLMS Core                      β”‚
               β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                           β”‚
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β–Ό                                 β–Ό                                β–Ό
  [ Super Admin ]                 [ Organization Admin ]            [ Student / Learner ]
  β€’ System Settings               β€’ Faculty & Staff Management       β€’ Interactive Learning
  β€’ Organization Provisioning     β€’ Exam & Curriculum Designer       β€’ Timed Mock Tests
  β€’ Platform-wide Analytics       β€’ Test Publishing & Grading        β€’ Socratic AI Explanations
                                  β€’ Class Timetables & Attendance    β€’ Performance Analytics

πŸš€ Quickstart (Under 2 Minutes)

Option A: Local Run (Python)

  1. Clone the repository:

    git clone https://github.com/Raghavender1234/pr-dia.git openlms
    cd openlms
  2. Create a virtual environment & install dependencies:

    python -m venv venv
    # On Windows:
    venv\Scripts\activate
    # On Linux / macOS:
    source venv/bin/activate
    
    pip install -r requirements.txt
  3. Initialize the database with sample organizations & test users:

    python seed_database.py
  4. Launch the application:

    • Via Terminal:
      python run.py
    • Via Desktop GUI Control Hub:
      python launcher.py
      (On Windows, you can also simply double-click launcher.bat)

    Open your browser at http://127.0.0.1:5000.


Option B: Docker Compose (Production Ready)

docker compose up -d

The platform will automatically initialize PostgreSQL and launch the web server on port 5000.


πŸ”‘ Pre-Configured Demo Accounts

After running python seed_database.py, log in at http://127.0.0.1:5000/login:

Role Email Password Access Level
Super Admin admin@openlms.dev Admin@123 Platform owner & multi-tenant manager
Faculty / Co-Admin instructor@openlms.dev Instructor@123 Course creation, test management, grading
Student / Learner student@openlms.dev Student@123 Course modules, practice questions, mock tests

βš™οΈ Configuration & Environment Variables

Copy .env.example to .env to customize settings:

cp .env.example .env
Variable Description Default
SECRET_KEY Flask session encryption key Auto-generated / dev fallback
DATABASE_URL SQLAlchemy connection string sqlite:///app.db
OPENAI_API_KEY (Optional) OpenAI key for question generation & Socratic tutor None (AI simulated if unset)
S3_BUCKET_NAME (Optional) AWS S3 bucket for uploads None (Saves locally in app/static/uploads)
FRONTEND_URL Canonical application URL http://127.0.0.1:5000

πŸ—ΊοΈ Roadmap & Community Goals

  • Multi-tenant organization support
  • MathJax / LaTeX formula rendering
  • Multi-statement & Assertion-Reason question engine
  • PDF report generation with ReportLab
  • Ollama / Local LLM integration (Run AI tutors 100% offline without OpenAI)
  • QTI & Moodle XML Import/Export
  • Dark Mode UI Toggle
  • Interactive Code Sandbox for CS / Programming courses
  • Mobile App / PWA support

🀝 Contributing

We warmly welcome contributions from developers, educators, designers, and students!

  • Check out CONTRIBUTING.md to set up your development environment.
  • Browse open issues labeled good first issue or help wanted.
  • Please adhere to our Code of Conduct.

πŸ“„ License

This project is dual-licensed under:

You may choose to use this project under either license at your discretion. Free for academic, commercial, and personal use.

About

AI-native, modular Learning Management System (LMS) and assessment platform for institutes, colleges, and self-hosted learners. Built with Python & Flask.

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages