A simple interactive quiz game deployed on an Amazon EC2 instance using a Python Flask backend. Users can answer cloud, Linux, and programming-related multiple-choice questions, making it a great beginner-friendly project to demonstrate EC2 hosting, security groups, Linux configuration, and Flask application deployment.
- Random Tech Quiz Questions
- Flask Backend API (
/get_question) - Interactive Frontend
- Deployed on AWS EC2
- Lightweight & Fast
User Browser
β
βΌ
Internet (HTTP Request)
β
βΌ
AWS Security Group (Allows Port 5000/80)
β
βΌ
Amazon EC2 Instance (Amazon Linux 2)
β
βΌ
Flask Web Application (Serves index.html & Provides /get_question API)
techquiz/
βββ app.py
βββ templates/
β βββ index.html
βββ static/
βββ style.css (optional)
- A user opens the app through the EC2 public IP.
- The frontend sends a request to
/get_question. - Flask returns a random question + options in JSON format.
- User selects an answer β frontend checks correctness.
- User can click Next Question to fetch a new one.
- All processing happens on the EC2-hosted Flask backend.
- Amazon EC2
- Security Groups
- EC2 Key Pair
1. Launch EC2 Instance 2. SSH into EC2 3. Install Dependencies 4. Upload Your Project 5. Run Application 6. Open in Browser
-> Refer to the full documentation for detailed implementation steps.
πDocumentation: documentation.pdf
