This is a simple movie recommendation website which built on top of stack of technologies and tools for the purpose of fun and learning.
Please install required python libraries that stated in requirements.txt
To start the project, you need to have docker installed in your machine. If you do not have it, you can download the docker at Docker
- Pycharm
- Visual Studio Code
- Intellij
- Clone the repo
git clone [email protected]:KYKong1997/MovieRecommender.git
- Build docker image
docker-compose build
- Start docker image
docker-compose up
- SSH into postgres container and load data into database tables
The rating data is exceeding git file size limit. You may download the data from Kaggle
docker exec -it <containerId> psql -U postgres
## copy movie.csv to container
docker cp data/movie.csv <containerId>:/movie.csv
## change to movie db
psotgres#\c movie
## Create table
CREATE TABLE movie
(
movieId serial,
title VARCHAR(1000),
....
)
## COPY csv to movie table
COPY movie FROM 'movie.csv' DELIMITER ',' CSV HEADER
Please repeat the same process for users.csv and ratings.csv
- Batch Prediction and save predictions to Redis
python training_model/prediction.py
- View result from browser by going to http://localhost:3000
- You can the user recommendation by entering userId into searchbox by default is no userId
- Kuok Yong @[email protected]