Git Product home page Git Product logo

project2's Introduction

README

Definitions for Functions in movies_tools.py

movies_tools.py contains the class Movie, which contains the functions needed to generate the list of the 10 movies and their respective IMDB ratings extracted from the movies_clean.csv file. It also contains the code that counts the total number of movies available in movies_clean.csv.

Relationship between movies_tools.py and SI507_project2.py

SI507_project2.py imports all of the code from movies_tools.py and utilizes the Flask module to use the code in a Flask application, viewable via web browser. See below on how to run the Flask Application and how to view on web browser.

Project Dependencies

This project requires installation of what is listed in the requirements.txt file to run the project.

Running Flask Application

To run the Flask application, in the command prompt, run 'python SI507_project2.py runserver'. Access the webpage either by using 1) the generated URL in the command prompt or by using the URL link 2) http://localhost:5000 and paste it into the browser. The home page should have a message saying, "3145 movies recorded."

Accessing the Movie Titles and Ratings Route

To access the route to the movie titles and ratings, edit the URL parameters in the browser to include '/movies/ratings'. A list of 10 movies and their respective IMDB ratings will be shown on the webpage.

project2's People

Contributors

kvuong22 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.