{"id":17002596,"url":"https://github.com/johnfercher/medium-logistic","last_synced_at":"2026-04-18T02:11:29.057Z","repository":{"id":255792242,"uuid":"853543698","full_name":"johnfercher/medium-logistic","owner":"johnfercher","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-29T14:44:44.000Z","size":197,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-27T18:59:08.605Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnfercher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-06T21:50:24.000Z","updated_at":"2024-10-08T02:52:44.000Z","dependencies_parsed_at":"2024-09-07T05:35:27.695Z","dependency_job_id":"45d87a8f-e9de-442a-9a42-cf761cba2b3f","html_url":"https://github.com/johnfercher/medium-logistic","commit_stats":null,"previous_names":["johnfercher/medium-logistic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnfercher/medium-logistic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfercher%2Fmedium-logistic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfercher%2Fmedium-logistic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfercher%2Fmedium-logistic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfercher%2Fmedium-logistic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnfercher","download_url":"https://codeload.github.com/johnfercher/medium-logistic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnfercher%2Fmedium-logistic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-14T04:28:30.241Z","updated_at":"2026-04-18T02:11:29.042Z","avatar_url":"https://github.com/johnfercher.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# medium-logistic\n\n## Run\n\n### 1. Build Dockers\n```bash\nmake build-docker-api\nmake build-docker-neo4j \n```\n\n### 2. Build Frontend\n```bash\ncd frontend\nnpm install\n```\n\n### 3. Run\n```bash\nmake run # Terminal A - Blocking\nnpm run server # Terminal B - Blocking\n```\n\n## Queries\n```cypher\nMATCH (source:City {id: 'maceio'}), (target:City {id: 'sao_paulo'})\nCALL gds.shortestPath.dijkstra.stream('myGraph', {\n    sourceNode: source,\n    targetNodes: target,\n    relationshipWeightProperty: 'distance_km'\n})\nYIELD index, sourceNode, targetNode, totalCost, nodeIds, costs, path\nRETURN\n    index,\n    gds.util.asNode(sourceNode).name AS sourceNodeName,\n    gds.util.asNode(targetNode).name AS targetNodeName,\n    totalCost,\n    [nodeId IN nodeIds | gds.util.asNode(nodeId).name] AS nodeNames,\n    costs,\n    nodes(path) as path\nORDER BY index\n```\n\n\n```cypher\nMATCH (a:City)-[r:road]-\u003e(b:City)\nRETURN gds.graph.project(\n  'myGraph',\n  a,\n  b,\n  { relationshipProperties: r { .distance_km } }\n)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnfercher%2Fmedium-logistic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnfercher%2Fmedium-logistic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnfercher%2Fmedium-logistic/lists"}