or Six Degrees of Kevin Bacon
This app creates/reads an XML document of movies and actors, loading them into a graph datastore and allows you to anlayze the degree of distance between any two actors.
- Neo4j.rb - (runs an embedded neo4j graph database, so theres no need for an external server)
- JRuby - (needed for running Neo4j, as its all java)
- Go to http://localhost:3000
- Type in a movie and click "load movie"
- Repeat as desired
- When ready to build xml, click "save xml" button
- To compare actors, click "Compare" link
- Select actors and click "Get Distance" to find degrees of separation
- To reset, on home page, click "Reset All" button on bottom-right
- The version given, comes preloaded with a couple xml files (reset to start fresh!)
- TMDb is used for allowing users to pull in movie data
- There's a rake task to clear all data and xml files, run with -
bundle exec rake neo_db:clear_all
- JRuby Activerecord sqlite3 is a dependency in the gemfile, but currently not used
- There's a few Neo/XML related specs, feel to run
rspec spec
orguard
- Paperclip is used with NeoXML model, its currently writing locally
- Neo4j-Paperclip requires an older Paperclip which doesn't play nice, so the initializer
paperclip.rb
monkey patches logger