Giter Site home page Giter Site logo

ud036_startercode's Introduction

Fresh Tomatoes Movie Trailer Website

The Fresh Tomatoes Movie Trailer Website contains the movie posters of some of my favorite movies. If the user clicks on one of those posters, a link to the movie trailer will open on the page.

Source code for a Movie Trailer website.

The source code for this site can be found on my github page.

The module media.py contains a class Movie where we have created a data structure to store information about a particular film. The contents of this file are adapted for this project after following the Python Foundation course on Udacity.

The file entertainment_center.py will read from the JSON file movies.json, which acts as a simplified database, and create a list of Movie objects which will be passed to the open_movies_page function contained in the fresh_tomatoes module.

The module file fresh_tomatoes.py has been provided by Udacity. I made a few modifications to this file in order to personailze the site a little bit.

Running the code

The user will need to download and install Python, if it is not already installed.

Executing the code is as simple as typing the command

python entertainment_center.py

into the terminal.

This program will then open a window (or a new tab) in the default web browser with the newly created HTML site containing my favorite movies.

The code was written keeping in mind that the user will most likely be using Python 3.6, but it is compatible and will run if the user is still using Python 2.7. I recommend using Python 3 for future projects.

Resources

While creating this project, it was important that it have some sort of simulated real world behavior. The idea to use a JSON file to store the information about each film was added as a way to accomplish this simulation.

Known Issues

If the title of the movie contain more than 25 characters, the fresh_tomatoes module will create an undesired layout for the HTML. This is the reason why I changed the name of the movie to simply "Star Wars: The Last Jedi" when I had originally used "Star Wars: Episode VIII The Last Jedi".

License

The contents of this repository are covered under the MIT License.

ud036_startercode's People

Contributors

sjcorreia avatar adarsh0806 avatar

Stargazers

Darkin avatar

Watchers

James Cloos avatar  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.