A playground application for trying out a porthos-rpc cluster.
- RabbitMQ (any other AMQP 0.9.1 broker)
- SQLite
First of all, you need to download govendor
:
go get -u github.com/kardianos/govendor
Fetch all go dependencies:
govendor sync
Then build the app:
go build
After building the executable, you may run the playground as following:
./porthos-playground -bind 8080 -broker amqp:// -db playground.db
In the image, there's the dockerize
utility so you can use it to start the playground only after RabbitMQ is up and running.
playground:
image: porthos/porthos-playground
command: dockerize -wait tcp://broker:5672 -timeout 60s /go/src/github.com/porthos-rpc/porthos-playground/playground
links:
- broker
environment:
BROKER_URL: amqp://guest:guest@broker:5672/
BIND_ADDRESS: :8080
ports:
- "8080:8080"
To speed things up we provide a docker environment. Just run docker-compose up
then open http://localhost:8080/
.