We are picking up where we left off on Neo4j on Heroku –Part One so make sure you’ve read it or you’ll be a little lost. So far, we have cloned the Neoflix project, set up our Heroku application and added the Neo4j add-on to our application. We are now ready to populate our graph.
UPDATE: Learn a better way to create the graph in part 3 of my Neo4j on Heroku series.
Bring up two browser windows. On one you’ll go to your Neo4j instance running on Heroku,
$ heroku config
NEO4J_URL => http://xxxxxxxx:firstname.lastname@example.org:7014
and on the other you’ll go to the create_graph route of your app. So if you named your app neoflix, you’d go to neoflix dot herokuapp dot com/create_graph.
This will run the create_graph method and you’ll see nodes and relationships being created on the Neo4j Dashboard. It’s just over a million relationships, so it will take a few minutes. There are faster ways to load data into Neo4j (wait for part three of this series), but this will work in our case.
Continue reading →