This Go package creates a list of Cypher statements to turn a Git repository into a Neo4j graph. The data is modeled the following way:
- labels
- directory
- file
- person
- relationships
- EDITED
- IN_FOLDER
To turn a GIT repository into a graph, follow these steps:
- build the executable by running
go build
in the root of this project - run the executable:
./code2cypher --path {path of Git repository}
The Cypher statements are written to StdOut. You can pipe the Cypher statements to Cypher Shell or into a .cypher file you can import to Neo4j Desktop
Below is a screenshot of what the graph from the hellogitworld repository looks like in Neo4j Desktop