starting migration to neomodel

p2p
quadrismegistus 4 years ago
parent 4b0ff3aeed
commit 2b66a729fd

@ -113,7 +113,7 @@ This is configured to use my server. Optionally, you can run your own server:
cd server
./run.sh
```
Change the SERVER_ADDR constant at the top of client/main.py to point to your server. You will need neo4j installed.
Change the SERVER_ADDR constant at the top of client/main.py to point to your server. You will need neo4j installed. You will also need to change the neo4j login configuration at the top of server/models.py.
### As user

@ -1,7 +1,13 @@
from neomodel import *
from py2neo import *
from py2neo.ogm import *
NEO4J_USERNAME='neo4j'
NEO4J_PASSWORD='drive your plow over the bones of the dead'
NEO4J_SERVER='localhost'
NEO4J_PORT=7687
config.DATABASE_URL = f'bolt://{NEO4J_PASSWORD}:{NEO4J_PASSWORD}@{NEO4J_SERVER}:{NEO4J_PORT}' # default
exit()
G = Graph(password='drive your plow over the bones of the dead')
Nodes = NodeMatcher(G)
Edges = RelationshipMatcher(G)

Loading…
Cancel
Save