Simple movie trailer website to exercise some programming foundations with Python
Note: This is a solution to project 1 of the Udacity Full Stack Web Developer Nanodegree based on the course Programming Foundations with Python (ud036).
- Install Python 3.5+
- Install python-dotenv
-
Clone the repository:
$ git clone git@github.com:rishi-ramawat/FSND_P1-Movie_Trailer_Website.git $ cd FSND_P1-Movie_Trailer_Website
-
Initialize the project:
$ bin/init_project
- This shell script will create a
.env
file for you. - It will also install/upgrade python-dotenv.
- This shell script will create a
-
Review
.env
and and configure any required variables.- You would need access to OMDb API if you want to test the app's interaction with it.
- You can get the access by:
- Don't worry if you don't have the OMDb API Key (The app would still work)
- Just comment out
OMDB_API_KEY
in the.env
using#
.
- Just comment out
- Clone the repo
- Visit the folder where you have cloned the repo
- Make a copy
.env.example
and name it as.env
- Make sure all the required variables are present & initialized in
.env
- Make a copy
- Make sure you have python-dotenv installed
Run the following to generate fresh_tomatoes.html
:
$ python entertainment_center.py
Simple home page where movies are laid out
Page allows users to click on a movie image to watch its trailer