https://github.com/ifsvivek/quiz-application
4th Sem DBMS Project: Quiz Application
https://github.com/ifsvivek/quiz-application
dbms dbms-project flask python
Last synced: 2 months ago
JSON representation
4th Sem DBMS Project: Quiz Application
- Host: GitHub
- URL: https://github.com/ifsvivek/quiz-application
- Owner: ifsvivek
- License: mit
- Created: 2024-06-30T10:10:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-12T09:03:36.000Z (almost 2 years ago)
- Last Synced: 2025-03-29T12:46:58.014Z (over 1 year ago)
- Topics: dbms, dbms-project, flask, python
- Language: HTML
- Homepage: https://ifsvivek.github.io
- Size: 133 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quiz Application
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.
## Features
- **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.
## Project Structure
- `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.
## Setup
1. **Clone the repository**
```bash
git clone https://github.com/ifsvivek/DBMS-Project
```
2. **Install dependencies**
Ensure you have Node.js installed, then run:
```bash
npm install
```
3. **Generate TailwindCSS**
```bash
npx tailwindcss -i ./static/src/input.css -o ./static/dist/css/output.css --watch
```
4. **Activate the virtual environment**
```bash
python -m venv env # Create a virtual environment
```
```bash
env\Scripts\activate # On Windows
source env/bin/activate # On Unix or MacOS
```
5. **Install Python dependencies**
```bash
pip install -r requirements.txt
```
6. **Change the Database Credentials**
```py
host="localhost"
user="" # root is default user
password=""
database=""
```
7. **Run the Flask application**
```bash
python appy.py
```
## License
This project is licensed under the MIT License - see the LICENSE file for details.