https://github.com/FilipRokita/python-ai-quiz
A simple Flask-based quiz web application that allows users to take quizzes, track their high scores, and manage sessions. The app uses SQLite for data storage and supports user authentication. Perfect for learning Flask and database integration!
https://github.com/FilipRokita/python-ai-quiz
backend bootstrap database flask full-stack python quiz-app session-management sqlite web-app web-development webapp
Last synced: 8 months ago
JSON representation
A simple Flask-based quiz web application that allows users to take quizzes, track their high scores, and manage sessions. The app uses SQLite for data storage and supports user authentication. Perfect for learning Flask and database integration!
- Host: GitHub
- URL: https://github.com/FilipRokita/python-ai-quiz
- Owner: FilipRokita
- License: mit
- Created: 2025-02-11T15:14:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-11T16:18:02.000Z (over 1 year ago)
- Last Synced: 2025-02-11T16:27:26.300Z (over 1 year ago)
- Topics: backend, bootstrap, database, flask, full-stack, python, quiz-app, session-management, sqlite, web-app, web-development, webapp
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π§ Python AI Quiz
---
This is a web-based **Python AI Quiz Application** built using **Flask, SQLAlchemy, and Bootstrap**. The quiz focuses on **Artificial Intelligence (AI) topics** such as **deep learning, computer vision, and natural language processing (NLP)**.
## π― Main Advantage
The quiz questions are stored in a **database (SQLite)** instead of being hardcoded, making it **effortlessly customizable**. This allows users to **easily modify, expand, or update the quiz content** without changing the applicationβs code, ensuring **scalability and flexibility**. The included AI-related questions may serve as **placeholders**, meaning the quiz can be quickly adapted to any topic by simply updating the database.
## π Features
β
AI-related quiz with multiple-choice questions
β
User session management (tracks the highest score)
β
Dynamic leaderboard displaying the best score
β
Responsive design using Bootstrap
β
Modular and structured Flask application
β
SQLite database integration
## π» Technologies Used
- **Python** (Flask, SQLAlchemy, Flask-Session)
- **HTML, CSS, Bootstrap** (Frontend)
- **SQLite** (Database)
- **Docker** (Environment)
## π Installation Guide (with Docker)
### **1οΈβ£ Clone the Repository**
```sh
git clone https://github.com/FilipRokita/python-ai-quiz
cd python-ai-quiz
```
### **2οΈβ£ Run Docker Compose**
```sh
docker compose up -d
```
β
**Visit:** `http://0.0.0.0:8082/`
## π Installation Guide (without Docker)
### **1οΈβ£ Clone the Repository**
```sh
git clone https://github.com/FilipRokita/python-ai-quiz
cd python-ai-quiz
```
### **2οΈβ£ Install Dependencies**
```sh
pip install -r requirements.txt
```
### **3οΈβ£ Initialize the Database**
```sh
python init_db.py
```
### **4οΈβ£ Add Python AI Quiz Questions**
```sh
python add_questions.py
```
### **5οΈβ£ Run the Flask App**
```sh
python app.py
```
β
**Visit:** `http://127.0.0.1:5000/`
---
## π Author
**π¨βπ» Filip Rokita**
π [LinkedIn Profile](https://www.linkedin.com/in/filiprokita/)
π [GitHub Profile](https://github.com/FilipRokita)
---
## π License
This project is licensed under the **[MIT License](LICENSE)**.
---
### **π If you like this project, please give it a β on GitHub!**
π **Happy coding!** π