https://github.com/filiprokita/python-ai-quiz
A Flask-based quiz app that dynamically loads questions from a database, making it easy to customize. Users can take quizzes, track high scores, and manage sessions. By default, the quiz focuses on AI in Python, but can be easily adapted to any topic.
https://github.com/filiprokita/python-ai-quiz
ai backend bootstrap customizable database dynamic-content flask full-stack machine-learning python quiz-app session-management sqlite web-app web-development
Last synced: 2 months ago
JSON representation
A Flask-based quiz app that dynamically loads questions from a database, making it easy to customize. Users can take quizzes, track high scores, and manage sessions. By default, the quiz focuses on AI in Python, but can be easily adapted to any topic.
- Host: GitHub
- URL: https://github.com/filiprokita/python-ai-quiz
- Owner: FilipRokita
- License: mit
- Created: 2025-02-11T15:14:59.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-04T12:30:26.000Z (7 months ago)
- Last Synced: 2025-03-04T13:32:47.015Z (7 months ago)
- Topics: ai, backend, bootstrap, customizable, database, dynamic-content, flask, full-stack, machine-learning, python, quiz-app, session-management, sqlite, web-app, web-development
- Language: Python
- Homepage:
- Size: 1.32 MB
- 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!** π