项目作者: agoda-com

项目描述 :
Brew Neo4j graph from your client-side codebase using madge
高级语言: JavaScript
项目地址: git://github.com/agoda-com/barista.git
创建时间: 2021-06-19T05:24:57Z
项目社区:https://github.com/agoda-com/barista

开源协议:MIT License

下载


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