This web app serves as a simple web application that displays information about an EC2 instance running on AWS and provides a random recommendation for a top-rated movie from "The Movie Database" (TMDb).
-
Displays EC2 instance details, including:
- Instance ID
- Instance Type
- Private IP Address
- Subnet ID
- Availability Zone
-
Provides a random recommendation for a top-rated movie from TMDb, including:
- Movie Title
- Movie Poster
- Movie Summary
Follow these instructions to set up and run the Flask web app:
- Python 3.x installed on your system.
- [Optional] Docker
-
Clone the repository to your local machine:
git clone https://github.com/yourusername/your-flask-web-app.git
-
Create virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
source venv/bin/activate
-
Install dependecies:
pip install -r requirements.txt
-
Export TMDb read API key:
export TIMDb_API_KEY={YOUR_API_KEY}
-
Run:
python3 src/app.py
- Build image:
docker build -t local/imdb-top-100:latest .
- Run:
docker run -e TIMDb_API_KEY=API_KEY -p80:5000 local/imdb-top-100:latest