This Flask web application allows users to rate, review, and manage their favourite movies. Users can also add new movies, which are automatically fetched from The Movie Database (TMDb) using their API.
- Python 3.x
- Flask
- Flask Bootstrap5
- Flask SQLAlchemy
- Flask WTF
- WTForms
- TMDb API Key (Get one here)
-
Clone the repository:
git clone https://github.com/isotronic/top-10-movies-website.git
-
Navigate to the project directory:
cd top-10-movies-website
-
Install dependencies:
pip install -r requirements.txt
-
Set the following environment variables:
API_KEY
: Your TMDb API Key.API_READ_ACCESS_TOKEN
: TMDb API Read Access Token.
-
Adjust other parameters in the script as needed.
-
Run the Flask app:
python main.py
-
Open your web browser and go to
http://localhost:5000
to access the application. -
Rate, review, edit, and delete movies. You can also add new movies by searching and selecting from TMDb.
-
The application uses SQLite as the database, and a new database file (
top-10-movies.db
) will be created in the project directory. -
The application runs in debug mode by default. Update the script (
main.py
) to change this behaviour for production use.
- This project utilizes Flask for web development, Flask SQLAlchemy for database management, Flask WTF for forms, and Flask Bootstrap5 for styling.