Delete replit.md
Browse files
replit.md
DELETED
|
@@ -1,55 +0,0 @@
|
|
| 1 |
-
# Math Quiz App
|
| 2 |
-
|
| 3 |
-
A multiplication quiz web application built with Python Flask.
|
| 4 |
-
|
| 5 |
-
## Overview
|
| 6 |
-
|
| 7 |
-
Users configure a quiz (number range, question count, difficulty), answer timed multiplication questions, and view results on a leaderboard.
|
| 8 |
-
|
| 9 |
-
## Architecture
|
| 10 |
-
|
| 11 |
-
- **Backend**: Python 3.12 + Flask
|
| 12 |
-
- **Frontend**: Jinja2 HTML templates (server-side rendered)
|
| 13 |
-
- **Storage**: `leaderboard.json` file (local JSON file for scores)
|
| 14 |
-
|
| 15 |
-
## Project Structure
|
| 16 |
-
|
| 17 |
-
```
|
| 18 |
-
main.py # Flask app with all routes
|
| 19 |
-
templates/
|
| 20 |
-
configure_quiz.html # Quiz setup form
|
| 21 |
-
quiz.html # Question page with countdown timer
|
| 22 |
-
summary.html # End-of-quiz results
|
| 23 |
-
submit_score.html # Score submission form
|
| 24 |
-
leaderboard.html # Leaderboard display
|
| 25 |
-
index.html # (unused)
|
| 26 |
-
leaderboard.json # Persisted leaderboard data (auto-created)
|
| 27 |
-
```
|
| 28 |
-
|
| 29 |
-
## Routes
|
| 30 |
-
|
| 31 |
-
- `GET/POST /` β Configure quiz (number range, difficulty, question count)
|
| 32 |
-
- `GET/POST /quiz` β Active quiz with per-question countdown timer
|
| 33 |
-
- `GET/POST /summary` β Quiz results summary
|
| 34 |
-
- `POST /submit_score` β Save score to leaderboard
|
| 35 |
-
- `GET /leaderboard` β View all scores
|
| 36 |
-
|
| 37 |
-
## Running
|
| 38 |
-
|
| 39 |
-
**Development:** `python main.py` (Flask dev server on port 5000)
|
| 40 |
-
|
| 41 |
-
**Production:** `gunicorn --bind=0.0.0.0:5000 --reuse-port main:app`
|
| 42 |
-
|
| 43 |
-
## Dependencies
|
| 44 |
-
|
| 45 |
-
- `flask` β Web framework
|
| 46 |
-
- `gunicorn` β Production WSGI server
|
| 47 |
-
|
| 48 |
-
## Workflow
|
| 49 |
-
|
| 50 |
-
- Workflow: `Start application` β `python main.py` on port 5000 (webview)
|
| 51 |
-
|
| 52 |
-
## Deployment
|
| 53 |
-
|
| 54 |
-
- Target: autoscale
|
| 55 |
-
- Run: `gunicorn --bind=0.0.0.0:5000 --reuse-port main:app`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|