GithubHelp home page GithubHelp logo

shaikhanas1993 / -six-degrees-of-kevin-bacon- Goto Github PK

View Code? Open in Web Editor NEW

This project forked from haoliangpao/-six-degrees-of-kevin-bacon-

0.0 2.0 0.0 112 KB

This is an Java implementation of the backend for a service that computes Six Degrees of Kevin Bacon.This problem can be restated as finding the shortest path between Kevin Bacon and a given actor (via shared movies).

Java 100.00%

-six-degrees-of-kevin-bacon-'s Introduction

Backend for Six Degrees of Kevin Bacon

Keywords: Java backend, NoSQL (Neo4j), REST API, Maven

1. Descriptions

This is an Java implementation of the backend for a service that computes Six Degrees of Kevin Bacon.This problem can be restated as finding the shortest path between Kevin Bacon and a given actor (via shared movies).

  • The backend is running on port 8080.
  • Neo4j Username: neo4j;
  • Password: 1234;

2. Examples

  • Consider the actor George Clooney:
    • George Clooney acted in “Good Night, and Good Luck” with Patricia Clarkson
    • Patricia Clarkson acted in “Beyond All Boundaries” Kevin Bacon

So we would say that George Clooney has a “Bacon number” of 2.

  • Consider the actor Bud Collyer:
  • Bud Collyer was in “Secret Agent” with Jackson Beck
  • Jackson Beck was in “Hysterical History” with Mae Questel
  • Mae Questel was in “Who Framed Roger Rabbit” with Frank Welker
  • Frank Welker was in “Balto” with Kevin Bacon

So we would say that Bud Collyer has a “Bacon number” of 4.


3. Project/IDE Setup

  • Command Line:
    • Install maven
    • To compile your code simply run mvn compile in the root directory (the folder that has pom.xml)
    • To run your code run mvn exec:java
  • Eclipse:
    • File → Import → Maven → Existing Maven Projects
    • Navigate to the project location
    • Right click the project → Maven Build…
    • Input compile exec:java in the Goals input box
    • Click apply then run/close
    • You can now run the project by pressing the green play button
  • Intellij:
    • Import project
    • Navigate to the project location
    • Import project from external model → Maven
    • Next → Next → Next → Finish
    • Add Configuration → + Button → Maven
    • Name the configuration and input exec:java in the Command Line box
    • Apply → Ok
    • You can now run the project by pressing the green play button

4. Node/Relationship Property

  • Actor:

    • node label actor
    • node properties: id, Name
  • Movie:

    • node label movie
    • node properties: id, Name
  • Relationship:

    • relationship label ACTED_IN

5. Testing

-six-degrees-of-kevin-bacon-'s People

Contributors

haoliangpao avatar profdema avatar

Watchers

James Cloos 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.