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 other information about them. The data is served as an HTML Web page allowing visitors to review the movies and watch the trailers.
This project is being created as part of Udacity's Full-Stack Web Developer Nanodegree program. Your feedback about this project is most welcome.
A working demo of this project can be found over here.
To run this program, you must have the following applications installed:
- The latest version of Python 3. It can be downloaded from here.
- [Optional] Git. It can be downloaded from here.
Within this repository, you'll find the following files:
udacity-movie-trailer-website/
├── entertainment_center.py
├── media.py
├── fresh_tomatoes.py
├── fresh_tomatoes.html
├── LICENSE
└── README.md
Information about above Python files:
entertainment_center.py
- Includes all the instances of the classMovie
which basically define the movie information. Each instance defines the information of one movie. All the instances are passed as a list to the filefresh_tomatoes.py
through the functionopen_movies_page()
which generates an HTML Web page containing the list of movies along with their information.media.py
- Defines the classMovie
.fresh_tomatoes.py
- Defines the HTML structure for the website. The principal function isopen_movies_page()
which generates a static HTML Web page by taking a list instances of the classMovie
defined inmedia.py
.
-
Install the latest version of Python 3 from here if not already installed.
-
[Optional] Install Git from here. If you have downloaded the project manually, skip to step 4. Otherwise, follow the next step.
-
Open terminal, and clone this repository by typing the following command:
git clone https://github.com/SDey96/udacity-movie-trailer-website.git
-
Navigate to the directory
udacity-movie-trailer-website/
. -
Open a terminal in the aforementioned directory and type the following command: If you are using Windows, then type
python.exe .\entertainment_center.py
(Make sure first that Python is added to PATH.)
If you are using Linux, then type
python3 entertainment_center.py
-
A Web page will open in your default browser with the list of your favourite movies. Enjoy!
For any queries or kudos, you may reach out to me on Twitter.
If you are facing any trouble(s) with this project, you may create a new issue here.