Giter VIP home page Giter VIP logo

six-degrees-api's Introduction

Six Degrees API

Description

This is a Java implementation of a backend service that computes the shortest path (in relation to movies) between any given actor and Hollywood actor Kevin Bacon. This concept is based on the Six Degrees of Kevin Bacon.

Examples

neo4j DB example
  • Consider the actor Tom Cruise:
    • Tom Cruise acted in “A Few Men” Kevin Bacon

So we would say that Tom Cruise has a “Bacon number” of 1.

  • Consider the actor Emil Eifrem:
    • Emil Eifrem acted in “The Matrix” with Keanu Reeves
    • Keanu Reeves acted in “The Devil's Advocate” with Christopher Evans
    • Christopher Evans acted in “A Few Men” with Kevin Bacon

So we would say that Emil Eifrem has a “Bacon number” of 3.

Application Details

The application is essentially a RESTful API that uses HTTP requests to create actor and movie nodes, relationships between the nodes, and compute information based on the nodes in the database. The backend is stored in a Neo4j database using the Java Neo4j driver. Neo4j Specifications:

  • Version: 4.4.23 or lower
  • Database Port: bolt://localhost:7687
  • Username: neo4j
  • Password: 12345678

Node/Relationship Properties

  • Actors:

    • Node label: Actor
    • Node properties: actorId, name
  • Movies:

    • Node label: Movie
    • Node properties: movieId, name
  • Relationships:

    • Relationship label: ACTED_IN

Endpoints

Testing

To test the application, you can either:

  • Download and run the Postman collection package here.
  • Download and run the Robot test file here.

For information on how to install and use the Robot Framework for testing, click here.

six-degrees-api's People

Contributors

mayowaibi avatar

Watchers

 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.