-
Notifications
You must be signed in to change notification settings - Fork 2
Getting Started with an existing rails project
namxam edited this page Oct 27, 2011
·
3 revisions
This is a work in progress, so please contact me if you have any questions or problems.
-
Install neo4j (more about that on http://neo4j.org/)
-
Add architect4r to your rails project
gem 'architect4r'
-
Create an architect4r config
Create a
config/architect4r.yml
file and add your configuration like this:development: host: localhost port: 7477 log_level: DEBUG production: host: localhost port: 7474 log_level: WARNING
-
Create your first Node
class Person < Architect4r::Model::Node property :name, :cast_to => String property :birthday, :cast_to => Date end
-
Start your console and check if it is working
Person.create(:name => 'Max Mustermann', :birthday => Date.today)
Check your neo4j webadmin (usually: http://localhost:7474) and see if your data is there.