Pottery is a simple GUI module works with Loam on Clay. It provides graphical network diagram views based on clay datastore.
$ # Note: Please install go-bindata first.
$ go get github.com/jteeuwen/go-bindata/...
$ # Prerequisites: glide has been installed already.
$ # Prerequisites: Clay has been cloned into $GOPATH/src/github.com/qb0C80aE/clay already.
$ cd $GOPATH/src/github.com/qb0C80aE/clay
$ # Edit: Add the '_ "github.com/qb0C80aE/loam" // Install Loam module by importing' line into the import section of main.go in Clay.
$ # Edit: Add the '_ "github.com/qb0C80aE/pottery" // Install Pottery module by importing' line into the import section of main.go in Clay.
$ glide get github.com/qb0C80aE/loam
$ glide get github.com/qb0C80aE/pottery
$ glide install
$ go generate -tags=prebuild ./...
$ go build
$ ./clay &
The diagram resource return the physical and logical diagram for inet-henge based on Loam data models.
$ curl -X GET "localhost:8080/diagrams/physical"
$ curl -X GET "localhost:8080/diagrams/logical"
GET /diagrams/physical
GET /diagrams/logical
- Pottery is using https://github.com/codeout/inet-henge to draw diagrams.
- Pottery is using http://www.quackit.com/html/templates/download/bootstrap/portal-1/ to make UI looking better.