Neo4j on Heroku with Sinatra using Neography
This is a tiny little Neo4j application, a 'seed' ready to grow into graph-powered glory.
- Neo4j - the graph database
- Neography - a ruby driver
- Heroku - cloud hosting simplicity
- Neo4j Add-On - Neo4j on Heroku
Clone, Build and Go!
- Get Neo4j
- Download Neo4j
- Follow Neo4j's README to start the database
- Make sure it is running by browsing Neo4j's Web Interface at http://localhost:7474
- Get this seed app
git clone https://github.com/akollegger/neo4j-heroku-seeds.git
cd neo4j-heroku-seeds/ruby/sinatra-neography
- Prepare the app
bundle install
- Run it locally
ruby graphapp.rb
- Browse http://localhost:4567
Deploying to Heroku
- Got Heroku? Get it
- create an account on Heroku
- get the Heroku Toolbelt
- prepare the CLI with
heroku login
- make sure your public SSH keys are available to Heroku
- Heroku'ify the seed application
- use the
detachme.sh
script to make the subdir into a separate repository:sh detachme.sh
- create the heroku app:
heroku create
- use the
- Provision Neo4j Add-on
heroku addons:add neo4j
- Give the database a minute to start up
- Deploy to Heroku
git push heroku master
- Make sure that it launched successfully
heroku ps
- Any problems? Check
heroku logs
- Browse your application
heroku open