This is a project example similar to movies-ruby-neo4j-core but using rails and the latest version of neo4j
Because I wanted to update to the latest ruby library and I wanted to have tests in the example project.
You need to start neo4j and set up the environment variable NEO4J_URL
neo4j start
echo NEO4J_URL=http://user:password@localhost:7474/ >> .env
Also, you need to install and setup the test database
rake neo4j:install[community-2.2.4,test]
rake neo4j:config[test,7475]
echo NEO4J_URL=http://localhost:7475/ >> .env.test
In order to run the test suite you need to run a test instance of neo4j
rake neo4j:start[test]
guard
I am skipping the seed tests with Guard, but you can test the seed task manually with
rspec spec/lib/tasks/db_spec.rb
rake db:seed
run this command. You can read more here
gem install libv8 -v '3.16.14.11' -- --with-system-v8
If your username or password is incorrect you might get this error
resource.rb:37:in `handle_response_error!': Expected response code 200 Error for request