A Classroom Management System with AI-Generated Quizzes
The Student-Teacher Portal is a web-based platform that empowers teachers to create virtual classrooms, manage students, and assign auto-generated quizzes using Ollama (LLM). Students can take these quizzes, and the system generates detailed performance reports visible to both teachers and students.
Built with Flask (Backend), Django templates (Frontend), and SQLAlchemy (Database), this project leverages Ollama’s open-source LLM (instead of OpenAI) for dynamic quiz generation, making it a privacy-friendly alternative.
✔ Create & Manage Classrooms – Organize students into different classes.
✔ Add/Remove Students – Simple enrollment management.
✔ AI-Powered Quiz Generation – Uses Ollama LLM to generate quizzes (MCQs, short answers) based on topic/difficulty.
✔ Assign & Schedule Quizzes – Set deadlines and distribute quizzes.
✔ Automated Grading & Analytics – Instant reports on student performance.
✔ Take Quizzes – Attempt assigned quizzes before deadlines.
✔ Real-Time Results – View scores immediately after submission.
✔ Performance Reports – Analyze strengths/weaknesses with detailed feedback.
| Category | Technologies Used |
|---|---|
| Backend | Flask (Python) |
| Frontend | Django Templates (HTML, CSS, JS) |
| Database | SQLAlchemy (SQLite/PostgreSQL) |
| AI Model | Ollama (Local LLM for quiz generation) |
| Auth | Flask-Login / JWT |
- Teacher Signs Up → Creates a classroom and invites students.
- AI Quiz Generation → Teacher inputs a topic, and Ollama generates questions.
- Quiz Assignment → Teacher schedules quizzes for students.
- Students Attempt Quizzes → Submit answers before the deadline.
- Auto-Grading & Reports → System evaluates responses and generates performance analytics.
- Progress Tracking → Both teachers and students view reports.
- Multi-language support (for non-English quizzes).
- Plagiarism detection in student submissions.
- Mobile responsiveness for better accessibility.
- Integration with Google Classroom/Microsoft Teams.
-
Clone the repo:
git clone https://github.com/your-repo/student-teacher-portal.git cd student-teacher-portal -
Set up a virtual environment:
python -m venv venv source venv/bin/activate # Linux/Mac venv\Scripts\activate # Windows
-
Install dependencies:
pip install -r requirements.txt
-
Set up Ollama (LLM):
- Download & install Ollama.
- Run the desired model (e.g.,
ollama pull llama3).
-
Database setup:
flask db init flask db migrate flask db upgrade
-
Run the app:
flask run
Access at
http://127.0.0.1:5000
Contributions are welcome! Open an issue or submit a PR for improvements.
This project is licensed under MIT License.