Day 64 of 100 days of Code
This is a Flask-based web application for rating and reviewing movies. Users can view a list of movies, rate and review them, add new movies, and delete existing ones. The application integrates with The Movie Database (TMDB) API to fetch movie details and poster images.
- View a list of movies sorted by rating.
- Rate and review movies.
- Add new movies by searching through TMDB API.
- Delete existing movies.
- Responsive design using Bootstrap 5.
Before running the application, ensure you have the following installed:
- Python 3.x
- Flask
- Flask Bootstrap
- Flask SQLAlchemy
- Flask WTF
- Requests
You can install the required packages using the following command:
pip install -r requirements.txt
Clone the repository:
git clone https://github.com/yourusername/movie-rating-app.git
Navigate to the project directory:
cd movie-rating-app
Obtain a TMDB API key from TMDB website and store it in an environment variable named TMDB_API_KEY. Run the application:
python main.py
The application will be accessible at http://localhost:5000 in your web browser.
- Visit the homepage to view a list of movies sorted by rating.
- Click on a movie to view details, rate, and review it.
- Use the search form to add new movies by title.
- Click on "Delete" next to a movie to remove it from the list.