{"id":19040385,"url":"https://github.com/chrischan1117/neo4j-python-neomodel","last_synced_at":"2025-06-27T03:37:08.090Z","repository":{"id":241261035,"uuid":"804710973","full_name":"ChrisChan1117/neo4j-python-neomodel","owner":"ChrisChan1117","description":"neo4j-movies-python-neomodel","archived":false,"fork":false,"pushed_at":"2024-05-23T05:51:05.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T22:32:46.702Z","etag":null,"topics":["neo4j","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/ChrisChan1117.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-23T05:51:01.000Z","updated_at":"2024-07-06T06:58:07.000Z","dependencies_parsed_at":"2024-05-23T07:43:41.952Z","dependency_job_id":null,"html_url":"https://github.com/ChrisChan1117/neo4j-python-neomodel","commit_stats":null,"previous_names":["chrischan1117/neo4j-python-neomodel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ChrisChan1117/neo4j-python-neomodel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisChan1117%2Fneo4j-python-neomodel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisChan1117%2Fneo4j-python-neomodel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisChan1117%2Fneo4j-python-neomodel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisChan1117%2Fneo4j-python-neomodel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChrisChan1117","download_url":"https://codeload.github.com/ChrisChan1117/neo4j-python-neomodel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisChan1117%2Fneo4j-python-neomodel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262182848,"owners_count":23271700,"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":["neo4j","python"],"created_at":"2024-11-08T22:22:27.876Z","updated_at":"2025-06-27T03:37:08.066Z","avatar_url":"https://github.com/ChrisChan1117.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# neo4j-movies-python-neomodel\n\n## How to setup locally\n\n### Install dependencies\n\n```shell\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n### Create the Neo4j database with correct data\n\nGo to [Neo4j's Sandbox](https://sandbox.neo4j.com/) and create a new project, select Movies under Pre Built Data. Go to `Connection details` and grab your credentials to add it to the following environment variable:\n\n```shell\nexport NEO4J_BOLT_URL=bolt://neo4j:password@host-or-ip:port\n```\n\nRun migrations and create your superuser (for the admin, this is using an SQLite database)\n\n```\n./manage.py migrate\n./manage.py createsuperuser\n```\n\n### Run the server\n\n```shell\npython manage.py runserver\n```\n\nNow you should be able to access http://localhost:8000 and play with the app.\n\n## Using the Admin with the Sandbox Dataset\n\nSince the Movies dataset in the sandbox is a toy dataset, we need to make some minor changes to get it to work with our Django Admin. \nPrimarily, we need to add unique ids to our nodes so we can open their detail view:\n\n``` Example Movie Node\n{\n  \"identity\": 0,\n  \"labels\": [\n    \"Movie\"\n  ],\n  \"properties\": {\n\"tagline\": \"Welcome to the Real World\",\n\"title\": \"The Matrix\",\n\"released\": 1999\n  }\n}\n```\n\nFor simplicity, do:\n\n```\nMATCH (n) \nSET n.uuid = toString(id(n))\n```\n\nNow you can log into the admin with your superuser and take a look at your Move and Person nodes. \n\n## How to deploy to Heroku\n\nGo to your Heroku dashboard and create a new app and add its git remote to your local clone of this app.\n\nGo your Heroku's app's settings and add the `NEO4J_BOLT_URL` environment variable with the correct credentials:\n\n```NEO4J_BOLT_URL=\"bolt://neo4j:password@host-or-ip:port\"```\n\nNow you can push to Heroku:\n\n```shell\ngit push heroku master\n```\n\nAnd thats all you need :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrischan1117%2Fneo4j-python-neomodel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrischan1117%2Fneo4j-python-neomodel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrischan1117%2Fneo4j-python-neomodel/lists"}