Welcome to the MCQ Website, an interactive platform for teachers to create and manage quizzes and for students to participate in quizzes and view their performance on the leaderboard.
- Create Quizzes: Teachers can create quizzes with multiple-choice questions (MCQs).
- Edit/Delete Quizzes: Update or remove quizzes and questions easily.
- View Quiz Submissions: Check the students' quiz responses.
- Leaderboard: See the top-performing students for each quiz.
- Take Quizzes: Students can take available quizzes created by teachers.
- Real-Time Feedback: After submitting the quiz, students can view their scores immediately.
- Leaderboard: Students can view the overall leaderboard and compare their scores with other students.
- Responsive Design: Optimized for desktop and mobile devices.
- Django: Backend framework for handling user authentication, quiz creation, and submissions.
- HTML/CSS/Bootstrap: Frontend design for a user-friendly interface.
- SQLite: Database for storing quiz questions, answers, and user information.
- JavaScript: Interactivity for dynamic content updates.
- Sign Up: Create an account or log in as a teacher.
- Create a Quiz: Navigate to the "Create Quiz" page and add your quiz title, description, and questions.
- Manage Quizzes: You can view, edit, or delete any quizzes you've created.
- Sign Up: Create an account or log in as a student.
- Take a Quiz: Browse the available quizzes and take the quiz of your choice.
- View Results: After submitting the quiz, view your score and correct answers.
- Leaderboard: See your rank on the leaderboard based on your performance across quizzes.
-
Clone the repository:
git clone https://github.com/your-username/quiz-website.git cd quiz-website
-
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate # On Windows use: venv\Scripts\activate
-
Install the dependencies:
pip install -r requirements.txt
-
Apply the migrations to set up the database:
python manage.py migrate
-
Create a superuser (for teacher access):
python manage.py createsuperuser
-
Run the server:
python manage.py runserver
-
Open your browser and visit:
http://127.0.0.1:8000
If you'd like to contribute to this project, feel free to submit pull requests or report issues.
This project is licensed under the MIT License - see the LICENSE file for details.