1

I have a Play application (Scala) setup on heroku. Now I want to connect this application to a neo4j database using the graphenedb addon for heroku.

I would like to use AnormCypher to interact with neo4j.

Which steps give me such a setup? I would appreciate some example built.sbt,plugins.sbt,application.conf files which allow connecting to neo4j in a Controller object.

andyp
  • 6,229
  • 3
  • 38
  • 55
Robin des Bois
  • 355
  • 2
  • 6
  • 20
  • I found that this write up was quite informative, if you do not want to use AnormCypher: http://www.kotancode.com/2013/05/14/accessing-neo4j-from-play-framework-2-1-with-web-service-futures/ – user2657794 Jun 03 '14 at 18:10

1 Answers1

3

Well, I guess it was finally time. Here's an example app:

https://github.com/AnormCypher/play-2.3-anormcypher-0.5/

I wasn't particularly creative with the contents, but... http://play-2-3-anormcypher-0-5.herokuapp.com/

Eve Freeman
  • 32,467
  • 4
  • 86
  • 101
  • There is still one minor problem I don't know how to solve: Locally `GRAPHENEDB_URL` isn't defined, so when I try to run the application locally using 'activator run' it doesn't work as expected. Where should I define this constant, without overriding the variable on heroku? And how? I am sorry for this very basic question.. – Robin des Bois Jun 03 '14 at 18:25