- Docker https://docs.docker.com
- Docker Compose https://docs.docker.com/compose/
Run the below code:
docker-compose up web
You need execute migrations to neo4j and populate database with default test data to see the system works.
docker-compose run web rails neo4j:migrate RAILS_ENV=development
docker-compose run web rake db:seed
Run the below code:
docker-compose run web rails test
app:
tty: true
stdin_open: true
This also makes it possible to after the containers are up do docker attach angorah_web_1
which seems to work fine.
Removing nodes:
MATCH (n { first_name: 'Raphael' })
DETACH DELETE n
Removing relations:
MATCH (Raphael)-[r:FRIEND]->(It)
DELETE r
Removing constraint:
DROP UserNeo4j
- Use async_perform with Sidekiq
angorah/app/models/user_neo4j.rb
Line 46 in 08ac2ba
- Use only one query to get users and shortest paths
angorah/app/models/user_neo4j.rb
Line 60 in 08ac2ba
- Use only queries to generate order
angorah/app/models/user_neo4j.rb
Line 69 in 08ac2ba
- Implement worker with sidekiq