This is a movie website using Django as backend framework and SQLite as database.
For the current version, the following features are implemented,
- Search Engine including inverted index and LRU cache
- User Management
- Login via Facebook (OAuth with Facebook API)
- Recommender according to user's taste
I deployed the website at https://baohan08.pythonanywhere.com/.
I got 5000+ movie_ids from this movie dataset. With these movie_ids, I utilized a python lib called imdbpie to collect other columns of data. Currently, there are about 3000 movies in the database.
To make it easy to deploy, SQLite is chosen as database. The database file is movie.db
in the root directory.
- An Inverted Permuterm Index in B-Tree Structure
- LRU Cache for Frequent Query
- Results Sorted by Rating
- Item-based : Do the item-based recommendation based on users’ seens and expects
- Install Python 3 in your computer, and make sure to set environment variable correctly.
- Install Django and Sklearn for the Python environment. The easiest way is to use pip by running
pip install django
andpip install sklearn
in a terminal. - Open a terminal, input command:
python manage.py runserver 8080
- Open your web browser, input
localhost:8080
in the address bar.
- P.S. If you fail running
python manage.py runserver 8080
, try another port numbers, like 8081 or 8000.