Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.22 KB

README.md

File metadata and controls

39 lines (29 loc) · 1.22 KB

Inland Empire

A movie recommender system based on Letterboxd data. Inland Empire provides tailored movie suggestions to cinephiles based on their film ratings and personal preferences.

Setting up

Redis

You can install Redis here.

MongoDB

Make sure you downloaded MongoDB Community Server from here.

Create a config.json file in /backend with the following:

{
  "tmdb": {
    "api_key": "YOUR_TMDB_API_KEY"
  },
  "mongodb_local": {
    "uri": "mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.0.2",
    "database": "letterboxd_db"
  },
  "mongodb_atlas": {
    "uri": "mongodb+srv://<username>:<password>@<username>.ivddo.mongodb.net/?retryWrites=true&w=majority",
    "database": "letterboxd_db",
    "username": "YOUR_CLUSTER_NAME",
    "password": "YOUR_CLUSTER_PASSWORD"
  }
}

This will allow the application to connect to either your local MongoDB server by default. If you want to connect to your MongoDB Atlas cluster, change this line in database.py:

MONGO = "mongodb_atlas" # Change the "mongodb_local" string