Quiz App with Tailwind CSS
Table of Contents
Introduction
This is a Quiz Application built with Django and styled using Tailwind CSS. The application allows users to register, log in, choose quizzes based on categories, take quizzes with a countdown timer, and view results with a comparison of right and wrong answers. The application also includes functionality for resetting passwords both inside and outside the web app.
Features
- User Registration: Allows new users to register an account.
- User Login: Allows existing users to log in to their account.
- Choose Category Wise Quizzes: Users can select quizzes based on different categories.
- Quiz App: Users can take quizzes with multiple-choice questions.
- Count Down Timer: Each quiz has a countdown timer to limit the time for answering questions.
- Result Calculation: After completing the quiz, users can see their results.
- Show Wrong and Right Answer Comparison: The result page shows which answers were correct and which were incorrect.
- Forgot Password (Outside Web App): Users can reset their passwords if they forget them, via a form that does not require email.
- Reset Password (Inside Web App): Logged-in users can reset their passwords within the application.
Technologies Used
- Django: The web framework used to build the backend of the application.
- Tailwind CSS: A utility-first CSS framework used to style the frontend.
- JavaScript: Used for the countdown timer functionality.
Installation
Clone the repository:
git clone https://github.com/VivekChaturvedi205/QuizApp-Tailwind.git
cd QuizApp-Tailwind
Create a virtual environment:
python -m venv venv
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
Install the required packages:
pip install -r requirements.txt
Run migrations:
python manage.py migrate
Create a superuser (admin):
python manage.py createsuperuser
Start the development server:
python manage.py runserver
Usage
Register and Login:
- Visit the
/register/
URL to create a new user account.
- Login at the
/login/
URL.
Choose a Quiz Category:
- After logging in, choose a quiz category from the available options.
Take the Quiz:
- Answer the multiple-choice questions within the time limit provided by the countdown timer.
View Results:
- After completing the quiz, view your results including a comparison of right and wrong answers.
Reset Password:
- Forgot Password (Outside Web App): Visit
/forgot_password/
to reset your password using your username.
- Reset Password (Inside Web App): Logged-in users can change their password by visiting their profile settings.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
For any questions or feedback, please contact: