By Janet Vong
My Entertainment Center is a python server code that displays a list of movies that can be clicked on to show the trailer.
To run the server code, you need to have Python 2 installed on your computer. You also need basic knowledge of linux. Some knowledge of python is good, but not necessary.
- Download all of the file
ud036_StarterCode
. Make sure all three files (fresh_tomatoes.py, entertainment_center.py, and media.py) are in theud036_StarterCode
folder. - Open your terminal and change to the
ud036_StarterCode
directory. The folder should be in your Downloads folder. - Once you're in the
ud036_StarterCode
directory, typepython entertainment_center.py
. You'll be directed to the page in a web browser. Click on the image to play the movie trailer.
entertainment_center.py
is the server code that uses the class to iniatite instances of the class and stores the content of each instance of the class.
media.py
is the class that lays out the blueprint requirements for each instance of a movie.
fresh_tomatoes.py
is the code that creates an html site page for you to see the list of movies and play the trailers.