(Project 64) - 🎬 Top 10 Movies (With Flask)
A simple Flask web application that lets users create and view a list of their Top 10 favorite movies. This project was built to practice Flask, forms, and basic data handling. (README GENERATED BY AI!)
🚀 Features
-
Add movies with details like:
-
Movie title
- Rating
- Review
- Watch time
- Display a ranked list of your Top 10 Movies
- Uses Flask-WTF for form handling
- Styled with Bootstrap 5
- Stores data using a lightweight CSV-based approach
🛠️ Tech Stack
- Python 3
- Flask
- Flask-Bootstrap
- Flask-WTF
- WTForms
- HTML / Jinja Templates
- CSV for simple storage
📂 Project Structure
Top 10 Movies (With Flask)/
│
├── main.py
├── templates/
│ ├── index.html
│ └── add.html
├── static/
│ └── styles.css
├── movies.csv
└── README.md
⚙️ Installation & Setup
- Clone the repository
bash
git clone https://github.com/mythreshnaveen-debug/100-Projects-in-Python.git
- Navigate to the project folder
bash
cd "Top 10 Movies (With Flask)"
- Create and activate a virtual environment
bash
python -m venv .venv
source .venv/bin/activate # macOS/Linux
- Install dependencies
bash
pip install flask flask-bootstrap flask-wtf wtforms
- Run the app
bash
python main.py
- Open your browser and go to:
http://127.0.0.1:5000
📸 Preview
Add your favorite movies, rank them, and build your personal Top 10 list!
🎯 Learning Goals
- Understanding Flask routing
- Working with Jinja templates
- Handling forms and validation
- Structuring a Flask project
- Publishing a project on GitHub
📌 Notes
- This project is intentionally simple and beginner-friendly
- Data is stored locally (CSV), not in a database
- Great foundation for upgrading to SQLAlchemy later 👀
⭐ If you like this project, consider giving the repo a star!