Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.92 KB

README.md

File metadata and controls

58 lines (38 loc) · 1.92 KB

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