Flask API serves movie recommendation.
Postman Collection : https://www.getpostman.com/collections/63a0dfc9ae6d2657ee29
Deployed in heroku : https://movie-recommender-teamtomato.herokuapp.com
- Clone the repo to your local
git clone https://github.com/Team-Tomato/Movie_Recommendation_Backend.git
- Create or Activate your vitrual environment.
virtualenv env
source env/bin/activate
- Install the dependencies from requirements.txt
pip install -r requirements.txt
- Add or modify the .env file according to your local postgres database. Here is the example .env file. Leave the APP_SETTINGS as it is
APP_SETTINGS="config.DevelopmentConfig"
POSTGRES_URL="127.0.0.1"
POSTGRES_USER="postgres"
POSTGRES_PW="password"
POSTGRES_DB="movie_teamtomato"
GITHUB_USER_NAME="Team-Tomato"
- Create the database in your local with your database name db-name adn start your local database server.
- Run the following commands to mirate the database.
python manage.py db init #If prompts error, leave it.
python manage.py db migrate
python manage.py db upgrade
- Start the server,
python manage.py runserver
- Try hitting the end points for sample testing.
Note: If your changes adds some dependencies to the system, kindly update the requirements.txt file using pipreqs
pip freeze > requirements.txt