Collins Muriuki, 9/10/2019.
Application makes use of the movie database API (tmdb)
Here are the features in summary:
- App displays popular movies, upcoming movies and latest movies
- User can search and review any movie.
- This program requires python3.+ (and pip) installed, a guide on how to install python on various platforms can be found here
- Once python is installed, install the folowing external libraries provided in the requirements.txt file using pip
- Example:
pip install flask
To view the app, open the live site link provided below on the README. Here is a run through of how to set up the application:
- Step 1 : Clone this repository using
git clone https://github.com/collinsmuriuki/flask-movie-app.git
, or downloading a ZIP file of the code. - Step 2 : The repository, if downloaded as a .zip file will need to be extracted to your preferred location and opened
- Step 3 : Go to the project root directory and install the virtualenv library using pip an afterwards create a virtual environment. Run the following commands respectively:
pip install virtualenv
virtualenv venv
source venv/bin/activate
- Note that you can exit the virtual environment by running the command
deactivate
- Note that you can exit the virtual environment by running the command
- Step 4 : Download the all dependencies in the requirements.txt using
pip install <name>
- Step 5 : Go to the the movie database (TMDB) API WEBSITE, sign up for a free account and generate an API key.
- Create a file in your root directory called start.sh and store the API key like so
export API_KEY="<your-key>"
- On the same file write down the command
python3 manage.py server
- Create a file in your root directory called start.sh and store the API key like so
- Step 6 : On your terminal, run the following command,
chmod a+x start.sh
- You can now launch the application locally by running the command
./start.sh
- Open your preferred browser and view the app by opening the link http://127.0.0.1:5000/.
- You can now launch the application locally by running the command
- None present, in case of any, be sure to contact me
- Python 3.7.4
- Flask 1.1.1
- HTML
- CSS
- Bootstrap 3.3.7
You can provide feedback or raise any issues/ bugs through the following means:
You can view the live application by following this link.