Skip to content

Brew a graph of your client-side codebase using Madge & Neo4j

License

Notifications You must be signed in to change notification settings

vladbatushkov/barista

Repository files navigation

Barista

Commitizen friendly

barista-logo

Brew a graph of your client-side codebase using Madge & Neo4j.

Read a Tutorial on Medium.

How it works:

image

Build and Run

  • [Optional] Run docker-compose up to start Neo4j instance
    • Predefined user/password: neo4j/barista
    • You can use any Neo4j instance instead
  • Run yarn install
  • Run yarn barista
  • Wait... graph is brewing... done!
  • [Optional] Use local Neo4j Browser to explore your graph
    • You can use any Neo4j tool for graph analysis

Graph Schema

Nodes:

  • (:Folder)
  • (:File)

Relationships:

  • (:Folder)-[:IN]->(:Folder)
  • (:File)-[:FROM]->(:Folder)
  • (:File)-[:DEPENDS_ON]->(:File)

schema

Useful Cypher Queries

/cypher folder contains a collection of useful queries:

Contributors are welcomed

Categories to work on:

  • Enrich result graph with new nodes and relationships
  • Change the logic of application
  • Add more useful Cypher queries
  • Improve documentation

About

Brew a graph of your client-side codebase using Madge & Neo4j

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published