Neo4j launched a challenge earlier this year called "Seed the Cloud" to get folks to create templates or demo applications on Heroku using the Neo4j add-on. After much internal debate, I decided to enter, only to be thrown into despair for lack of an idea. The idea came to me while I was doing nothing in particular- to build a simple app that would help one find ingredients whose flavors complement one another.
How to deploy Flavorwocky locally as well as on Heroku is documented in the Readme.
Basically, you have these ingredients that pair really well together- knowing which ingredients have flavor affinities can produce some amazing new dishes.
The app allows you to add pairings with an 'affinity'- how well they pair together- and search for an ingredient to find others that pair with it.
The app is built using Grails 2.0 for the front end, visualizations are the result of the very neat d3.js library, and interaction with Neo4j is done using the Neo4j REST Api.
The entire thing is deployed on Heroku (with the Neo4j add-on), while the source is available on github
To get started with Grails 2.0, Neo4j add-on and Heroku, read Aldrins post on the topic: http://thought-bytes.blogspot.in/2012/02/grails-20-heroku-and-neo4j-addon.html
The entire thing is deployed on Heroku (with the Neo4j add-on), while the source is available on github
To get started with Grails 2.0, Neo4j add-on and Heroku, read Aldrins post on the topic: http://thought-bytes.blogspot.in/2012/02/grails-20-heroku-and-neo4j-addon.html
How to deploy Flavorwocky locally as well as on Heroku is documented in the Readme.
The model lends itself very nicely to a graph- as you can see, it is very simple:
Every category is color coded- for convenience, it is stored as a property on the category node, but of course, it doesn't have to be.
Flavorwocky was also picked as the basis for this challenge because it is a real world use case for a graph, and I wanted this entry to really focus on Neo4j primarily rather than supporting bells and whistles. The features of the Neo4j REST api used in this app will be the topic of the next post.
Gentle reminder: Please tweet about Flavorwocky if you like it or just want me to win. Voting also helps!
-Luanne

3 comments:
nice idea.. thanks for sharing.
Thanks for sharing ... is it possible to help me with some data in neo4j db. I am having difficulty in trying to create a relationship.
Yes sure, you can also post your question on stackoverflow.com with tag neo4j
Post a Comment