jhabarsingh / MOVIE-RECOMMENDER

Movie recommender System Built using vuejs, Django, and The Machine Learning Algorithm used to implement recommender system is Cosine similarity.

Home Page:http://movie-recommender-jhabar.000webhostapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backend EC2 Instance has been terminated so api's and website won't work

NOTES

To use the Recommender API that I have created in this project Click on this Link

MOVIE-RECOMMENDER ⚡️ License: MIT GitHub stars GitHub contributors GitHub issues GitHub forks


⚡ TECH STACK
⚡ AWS SERVICES

Apis Used To Fetch Movie Details


About

MOVIE-RECOMMENDER is a Web app built using Django and Vuejs. The Machine Learning Algorithm used to implement recommender system is Cosine similarity. To fetch the movie and it's cast detail TMDB Apis is used.


How To Use The Django Recommendation Api?

Django Apis

Javascript

  let movieName = "Avatar"; // Name of movie
  let URL = "http://ec2-3-142-140-94.us-east-2.compute.amazonaws.com:8000/recommender/";
  let options = {
      method: "POST",
      headers: {
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        "text": movieName
      })
  }
  
  fetch(URL, options)
  .then(res => res.json())
  .then(movies => console.log(movies)) // Array of all recommender Movies
  .catch(err => console.log(err.response))
  

Python

import requests
import json
movieName = "Avatar"
URL = "http://ec2-3-142-140-94.us-east-2.compute.amazonaws.com:8000/recommender/"


headers = {
	'Content-Type': 'application/json'
}
data = json.dumps({
	'text': movieName
})
response = requests.post(URL, data=data, headers=headers)
data = json.loads(response.text)
print(data)


Cosine Similarity

The recommender system calculates the cosine similarity beween the different movies and lesser the angle ‘θ’ greated is the similarity.

To know more about the Cosine Similarity Read this Blog


Django Backend Setup

Using venv

git clone https://github.com/jhabarsingh/MOVIE-RECOMMENDER.git 
cd MOVIE-RECOMMENDER
python3 -m venv env # Python 3.6.9 or 3.7.0 version 
source env/bin/activate
python3 -m pip install --upgrade pip
pip install -r requirements.txt
python manage.py runserver

Using conda

git clone https://github.com/jhabarsingh/MOVIE-RECOMMENDER.git 
cd MOVIE-RECOMMENDER
conda create -n hatespeech python==3.7 
conda activate hatespeech
python3 -m pip install --upgrade pip
pip install -r requirements.txt
python manage.py runserver

Using Docker

sudo apt-get install docker docker-compose # Install docker, docker-compose on linux
git clone https://github.com/jhabarsingh/MOVIE-RECOMMENDER.git
cd MOVIE-RECOMMENDER
sudo docker-compose up

Vuejs Setup

Install node | Install vue/cli

 git clone https://github.com/jhabarsingh/MOVIE-RECOMMENDER.git
 cd MOVIE-RECOMMENDER
 npm install   # Nodejs should be installed
 npm run start # Vuejs should be installed

Want To Contribute

You can contribute to this project in many ways

  1. You can create an issue if you find any bug.
  2. You can work on an existing issue and Send PR.
  3. You can make changes in the design if it is needed.
  4. Even if you find any grammatical or spelling mistakes then also you can create an issue.

I would be glad to see a notification saying User {xyz} created a Pull Request. I promise to review it.

About

Movie recommender System Built using vuejs, Django, and The Machine Learning Algorithm used to implement recommender system is Cosine similarity.

http://movie-recommender-jhabar.000webhostapp.com/

License:MIT License


Languages

Language:JavaScript 72.2%Language:Vue 13.4%Language:Python 9.7%Language:HTML 4.4%Language:Dockerfile 0.1%Language:Shell 0.1%