This project is a web-based quiz application built with Flask and TailwindCSS. It allows users to log in as either an admin or a user. Admins can create quiz questions, while users can take quizzes and view their results.
- User Authentication: Separate login forms for users and admins.
- Quiz Management: Admins can add quiz questions.
- Dynamic Quiz Taking: Users can take quizzes and get immediate feedback.
appy.py
: Flask application files.env/
: Virtual environment directory.static/
: Contains static files like CSS.src/input.css
: TailwindCSS entry point.
templates/
: HTML templates for the application.admin.html
: Admin interface for managing quizzes.index.html
: Landing page with login forms.quiz.html
: Quiz taking interface for users.result.html
: Displays quiz results to users.
tailwind.config.js
: TailwindCSS configuration.connect.py
: Credentials to establish connection with Database.package.json
: Node.js project file with dependencies.requirements.txt
: Python dependencies.interview_questions_mcq.xlsx
: Excel file containing quiz questions.
- Clone the repository
git clone https://github.com/ifsvivek/DBMS-Project
- Install dependencies
Ensure you have Node.js installed, then run:
npm install
- Generate TailwindCSS
npx tailwindcss -i ./static/src/input.css -o ./static/dist/css/output.css --watch
- Activate the virtual environment
python -m venv env # Create a virtual environment
env\Scripts\activate # On Windows
source env/bin/activate # On Unix or MacOS
- Install Python dependencies
pip install -r requirements.txt
- Change the Database Credentials
host="localhost"
user="<Your_Username>" # root is default user
password="<Your_Password>"
database="<Your_Database_Name>"
- Run the Flask application
python appy.py
This project is licensed under the MIT License - see the LICENSE file for details.