RandoFlix generates a random movie or show suggestion based on Netflix content as of 2019. A user can create a list, add or remove an item from the list, or watch the content by clicking a button that links out to Netflix's site (some content may no longer be available).
Application: Python, Flask, JavaScript, HTML, CSS, Bootstrap
Database: PostgreSQL, SQLAlchemy
Data Source: www.kaggle.com/shivamb/netflix-shows
Note this project was built using Python 3.9.0 and Postgres 13.1, and requires Postgres installed on your machine.
-
Create an account on Kaggle.com and download csv data set
https://www.kaggle.com/shivamb/netflix-shows
-
Clone Repo
$ git clone https://github.com/RunHannah/watch_movies.git
-
Navigate to Directory
$ cd watch_movies/
-
Unzip csv data file and add netflix_shows.csv file at root directory
-
Create .env file at root directory
-
Obtain an API Key from OMDB at www.omdbapi.com/, and add to .env file using the following format:
export OMDB_API_KEY="OMDB_API_KEY_HERE"
-
Start PostgreSQL server and create a database called netflix_movies
For MacOS: pg_ctl -D /usr/local/var/postgres start psql postgres
-
Add to .env file the following info with your username and password for the netflix_movies database
export DATABASE_URL="postgresql://<username>:<password>@localhost/netflix_movies"
- Activate virtual environment and install dependencies
$ pipenv shell
$ pipenv install
- Start the development mode
$ python app.py
Site is now running at http://127.0.0.1:5000/
This project is licensed under the MIT License