{"id":26768119,"url":"https://github.com/raphox/angorah","last_synced_at":"2025-03-28T21:19:40.481Z","repository":{"id":40088764,"uuid":"269880413","full_name":"raphox/angorah","owner":"raphox","description":"Social network consult","archived":false,"fork":false,"pushed_at":"2023-01-19T19:18:05.000Z","size":1220,"stargazers_count":1,"open_issues_count":31,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-17T01:08:34.686Z","etag":null,"topics":["graph","neo4j","ruby","ruby-on-rails","social-network"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raphox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-06T05:36:16.000Z","updated_at":"2024-04-17T01:08:34.688Z","dependencies_parsed_at":"2023-02-11T18:00:33.436Z","dependency_job_id":null,"html_url":"https://github.com/raphox/angorah","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphox%2Fangorah","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphox%2Fangorah/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphox%2Fangorah/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphox%2Fangorah/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphox","download_url":"https://codeload.github.com/raphox/angorah/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246100578,"owners_count":20723479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graph","neo4j","ruby","ruby-on-rails","social-network"],"created_at":"2025-03-28T21:19:39.877Z","updated_at":"2025-03-28T21:19:40.469Z","avatar_url":"https://github.com/raphox.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angora\n\n## Dependencies\n\n* Docker https://docs.docker.com\n* Docker Compose https://docs.docker.com/compose/\n\n## Running\n\nRun the below code:\n\n```\ndocker-compose up web\n```\n\n## Setup\n\nYou need execute migrations to neo4j and populate database with default test data to see the system works.\n\n```\ndocker-compose run web rails neo4j:migrate RAILS_ENV=development\ndocker-compose run web rake db:seed\n```\n\n## Testing\n\nRun the below code:\n\n```\ndocker-compose run web rails test\n```\n\n## Debugging with `byebug` inside the Docker\n\n```yaml\napp:\n  tty: true\n  stdin_open: true\n```\n\nThis also makes it possible to after the containers are up do `docker attach angorah_web_1` which seems to work fine.\n\nhttps://github.com/docker/compose/issues/423#issuecomment-141995398\n\n## Neo4j tips\n\n### Removing data\n\nRemoving nodes:\n\n```\nMATCH (n { first_name: 'Raphael' })\nDETACH DELETE n\n```\n\nRemoving relations:\n\n```\nMATCH (Raphael)-[r:FRIEND]-\u003e(It)\nDELETE r\n```\n\nRemoving constraint:\n\n```\nDROP UserNeo4j\n```\n\n## TODO\n\n* Use async_perform with Sidekiq https://github.com/raphox/angorah/blob/08ac2baa10afc036ae9b2478708cc535d1b8a2bc/app/models/user_neo4j.rb#L46\n* Use only one query to get users and shortest paths https://github.com/raphox/angorah/blob/08ac2baa10afc036ae9b2478708cc535d1b8a2bc/app/models/user_neo4j.rb#L60\n* Use only queries to generate order https://github.com/raphox/angorah/blob/08ac2baa10afc036ae9b2478708cc535d1b8a2bc/app/models/user_neo4j.rb#L69\n* Implement worker with sidekiq https://github.com/raphox/angorah/blob/16b3b9e6309b8d33edc2fd82560a7bb242aef107/app/workers/website_scrapper_worker.rb#L3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphox%2Fangorah","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphox%2Fangorah","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphox%2Fangorah/lists"}