Code Monkey home page Code Monkey logo

moviegeek's Introduction

moviegeek

The MovieGEEKs is a movie site implemented to accompany my book "Practical Recommender Systems". It is used in the book to show how recommender systems work, and how you can implement them.

The book is still being written, and so this is still under construction.

installation guide:

This site is using the MovieTweetings dataset, and uses themoviedb.org to get poster images. A big thanks to both of them for all their work. Please go and visit them.

The dataset is used in the populate_moviegeek script which downloads it and imports the data into the database configured in Django.

Project Setup

The following is expecting you to have python 3.x installed on your machine. I recommend looking that the Hitchhikers guide to Python if you haven't.

For windows users it's a good idea to install the Anaconda package. Anaconda is the leading open data science platform powered by Python (according to their homepage) Anaconda

Download code

> git clone https://github.com/practical-recommender-systems/moviegeek.git

Create a virtual environment for the project

Look at the following guide for more details guide

> cd moviegeek
> virtualenv prs
> source prs/bin/activate

if you are running Anaconda you can also use conda virtual environment instead.

Get the required packages

pip install -r requirements.txt

Create the dbs.

If you have a database running on your machine I would encourage you to connect it, by updating the settings in prs_project/settings.py. To set up another database is described in the Django docs here

> python manage.py makemigrations
> python manage.py migrate

Populate the db by running the following script.

(WARNING: this might take some time.) (WARNING: If you are using python >3.6 on a Mac then you need to run "/Applications/Python\ 3.6/Install\ Certificates.command". More details here)

> python populate_moviegeek.py

Create a themoviedb.org id

  • go to https://www.themoviedb.org/account/signup and create an api_key
  • create a file in the root of the directory called ".prs" and add { "themoviedb_apikey": <INSERT YOUR APIKEY HERE>}. (remember to remove the "<" and ">")

Start the web server

To start the development server run:

> python manage.py runserver 127.0.0.1:8000

Running the server like this, will make the website available http://127.0.0.1:8000 other applications also use this port so you might need to try out 8001 instead.

Closing down.

  • when you are finished running the project you can exit the virtual env:
> deactivate

moviegeek's People

Contributors

kimfalk avatar

Watchers

James Cloos avatar DL avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.