Giter Club home page Giter Club logo

movie-rating-web-application's Introduction

Movie Ranking Web Application

A web application built with Flask that allows users to rank and review movies. Users can add movies to the ranking list, rate them out of 10, and provide reviews. The movie data is fetched from the MovieDB API.

Features

  • View a list of movies ranked by their rating
  • Add new movies to the ranking list
  • Edit the rating and review of existing movies
  • Delete movies from the ranking list

Prerequisites

  • Python 3.x
  • MovieDB API Key

Getting Started

  1. Clone the repository.

  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Set up the environment variables:

    • Create a .env file in the project root directory.
    • Add the following variables to the .env file:
      • MOVIE_DB_API_KEY: Your MovieDB API key.
      • SECRET_KEY: Secret key for Flask session management.
  4. Run the application:

    python main.py
  5. Access the application in your web browser at http://localhost:5000.

Usage

  • Home Page: Displays a list of movies ranked by their rating. Users can view the movie title, year, description, and the current rating. The movies are sorted in ascending order based on their rating.

  • Add Movie: Allows users to add a new movie to the ranking list. Users enter the movie title, and the application fetches the movie details from the MovieDB API. If the movie is found, users can select it from the search results.

  • Edit Movie: Users can edit the rating and review of a movie. Enter the rating out of 10 and provide a review. Click "Done" to update the movie's information.

  • Delete Movie: Users can delete a movie from the ranking list. Click the delete button next to the movie to remove it from the list.

Error Handling

The application provides error handling for common errors:

  • 404 Page Not Found: If a user tries to access a page that doesn't exist, a 404 error page is displayed with a message indicating the page was not found.

  • 500 Internal Server Error: If an internal server error occurs, a 500 error page is displayed with a message indicating the error.

Technologies Used

  • Flask: Web framework used for building the application.
  • SQLAlchemy: ORM (Object-Relational Mapping) library for database management.
  • Flask-WTF: Flask extension for handling web forms.
  • Flask-Bootstrap: Flask extension for integrating Bootstrap styles.
  • MovieDB API: External API used to fetch movie data.

movie-rating-web-application's People

Contributors

mirelamanta avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.