The Movie Trailer Website project consists of server-side code to store a list of movies titles, along with its respective box art imagery and movie trailer website. The data should be served as a web page allowing visitors to review the movies and watch the trailers:
Simple home page where movies are laid out. see image.
Page allows users to click on a movie image to watch its trailer. see image.
You will write code to store a list of your favorite movies, including box art imagery and a movie trailer URL. You will then use your code to generate a static web page allowing visitors to browse their movies and watch the trailer.
How will I complete this project?
1.If you haven't already, install Python
2.Create a data structure (i.e. a Python Class) to store your favorite movies, including movie title, box art URL (or poster URL) and a YouTube link to the movie trailer.
3.Create multiple instances of that Python Class to represent your favorite movies; group all the instances together in a list.
4.To help you generate a website that displays these movies, we have provided a Python module called fresh_tomatoes.py - this module has a function called open_movies_page that takes in one argument, which is a list of movies and creates an HTML file which visualizes all of your favorite movies.
5.Ensure your website renders correctly when you attempt to load it in a browser.
Content
The page contains all of the required elements (title, box with art imagery, and trailer).
Python Data Structure
Page is generated dynamically from a Python data structure.
Errors
Code has no errors, bugs, or glitches.
Variables usage
Code uses variables to avoid magic numbers.
Each variable name reflects the purpose of the value stored in it.
After initialized, the purpose of each variable is kept throughout the program.
No variable overrides Python's built-in values (i.e., def).
Functions usage
Functions are used as tools to automate tasks that are likely to be repeated
Functions generate the appropriate output (usually with a return statement) from the appropriate input (function parameters).
No function contains codes longer than 18 lines (not including blank spaces, comments, variable and function definitions).
Appropriate data usage
The appropriate data types are consistently used (strings for text, lists for ordered data, and nested lines, as appropriate).
Appropriate coding techniques
The student demonstrates coding techniques like branching and loops appropriately (i.e., for loop in a list, for element in list:; for testing if something is in a list, if name in list_names:).
Appropriate classes usage
Code defines classes appropriately and uses instances of those classes in it.
Comments / Documentation
All functions include a comment, which explains its expected behavior, inputs and outputs (if applicable).