Git Product home page Git Product logo

project3's Introduction

README

What does this Project do?

This project will create a database with the movie title, director name, and MPAA movie rating based on the input the user provides at the specified route and display a list with this information at the other specified route in the web browser. See Accessing Application Routes below for details.

Definitions for Functions in SI507_project3.py

SI507_project3.py contains three classes: Director, Distributor, and Movie. Each class is a model to create its table in the database_movie.db file. Under each class are relevant attributes to the table along with their specifications and relationships. The Database_diagram.png shows a relational diagram between the three tables along with their attributes. There is a one:many relationship between Distributor and Movie and a one:many relationship between Director and Movie, which is reflected in the code.

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, "Hello, everyone!"

Accessing the Application Routes

To access the route to add the movie title, rating and director to the database, edit the URL parameters in the browser to include '/new/movie/<title>///'. Please note the way the code is set up, each movie added can only be added once. This means if a movie title has been directed by multiple directors, once the movie title is saved with one director, it will not save the same movie title with a different director to the database. To access the route to view the full list of all movie tiles, ratings, and directors added to the database, edit the URL parameters in the browser to include '/movies/all/'.

project3'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.