fabric

Quick Start

Clone the Project

Fetch the code:

mkdir github.com/microbus-io
cd github.com/microbus-io
git clone https://github.com/microbus-io/fabric

It is recommended to clone the code into a directory structure that mirrors the package structure.

Setup and Run the Development Environment

The Microbus framework depends on a few third-party services:

To quickly set up the development environment, use Docker Compose from within the setup directory to install NATS and Grafana LGTM in containers.

cd setup
docker compose -f microbus.yaml -p microbus up -d

Docker Desktop should now show the microbus application:


Note that Docker is not mandatory. You can install the dependencies manually, inside or outside containers.

Run the Examples

Run the example app:

cd main
go run main.go

It is necessary to set the working directory to main so that the file main/config.yaml can be located.

If you’re using Visual Studio Code, simply press F5. The .vscode/launch.json file includes a launch configuration for running main.

Try the following URLs in your browser:

Feel free to experiment with different values for the query arguments.

View the telemetry collected by Grafana at http://localhost:3000. Metrics and traces are visualized in dashboards and can also be viewed in the metrics drill-down app and the traces drill-down app.

Configure IDE

The Todo Tree extension is recommended for VS Code users.