Skip to content

根据go开发框架sponge创建的服务绘制业务架构图。

License

Notifications You must be signed in to change notification settings

zhufuyi/spograph

Repository files navigation

spograph

spograph is a tool for generating business architecture diagram based on the Go development framework Sponge.

Quick Start

Install spograph

go install github.com/zhufuyi/spograph@latest

Example of Use

Open a project created with Sponge, for example: eshop/example-2-mono-repo

# Case 1: Generate a business architecture diagram for the entire project
spograph --project-dir=example-2-mono-repo

# Case 2: Generate a business architecture diagram for specific services
spograph --server-dir=example-2-mono-repo/flashSale --server-dir=example-2-mono-repo/order

# To include database services in the diagram, add the "--all" parameter

Output svg example:

example-2-mono-repo

About

根据go开发框架sponge创建的服务绘制业务架构图。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages