-
Create a new virtualenv
-
Install the dependencies:
$ pip install -r requirements.txt
-
Export the environment variables of the project:
$ export FLASK_APP=movie_recommendations/__init__.py $ export FLASK_DEBUG=1
- Initialize the database:
$ flask init_db
- Fill it with mock data:
$ flask generate_user_network
- (optional) Fill it with a dataset info:
- Download the dataset from: https://www.kaggle.com/deepmatrix/imdb-5000-movie-dataset
- Import it using:
$ flask import_movie_dataset data/imdb-5000-movie-dataset.zip
Use any of the following:
(venv)$ flask run
(venv)$ python run.py
(venv)$ gunicorn -w 4 -b 127.0.0.1:5000 movie_recommendations:app