Neo4j Template for OpenShift
This is a blank application whose intent is to serve as a template to build another web applications with the following base stack:
- Neo4j Graph Database
- Spring Framework
- Spring Web MVC
- Spring Data Neo4j
How it works
Read my blog post here.
How to get started
gem install rhc
Generate a new ssh key-pair with this name:
ssh-keygen -t rsa -f ~/.ssh/libra_id_rsa
- Add them to your local ssh-agent:
Access your OpenShift account and add your generated SSH key.
Create a new Java app with:
rhc-create-app -a <yourappname> -t jbossas-7 -l <your rhc login>
- Update your recently created app repository with:
git remote add upstream -m master git://github.com/tomasmuller/openshift-neo4jtemplate.git
git checkout -b template
git pull -s recursive -X theirs upstream master
git checkout master
git merge template
git branch -D template
- You must have to export the following variable into your system (just a path to store Neo4j data):
- Start jetty with:
mvn -Plocalhost jetty:run
- Commit the changes, and then push, by running:
git commit -a -m "Neo4j template running on OpenShift."
And have fun with Neo4j at OpenShift!