Skip to content

Go package creates a list of Cypher statements to turn a GIT repository into a Neo4j graph

License

Notifications You must be signed in to change notification settings

ckanz/code2cypher

Repository files navigation

code2cypher

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

Neo4j Desktop Screenshot

About

Go package creates a list of Cypher statements to turn a GIT repository into a Neo4j graph

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published