Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

<img src="https://i.cloudup.com/WSKggRp4ZX.svg" width=78 /> <br/> busl

busl - the bustle part of hustle.

a simple pubsub service that runs on Heroku.

usage

create a stream:

$ export STREAM_ID=$(curl http://localhost:5001/streams -X POST)
# STREAM_ID=b7e586c8404b74e1805f5a9543bc516f

connect a consumer using the stream id:

$ curl http://localhost:5001/streams/$STREAM_ID
...

in a separate terminal, produce some data using the same stream id...

$ curl -H "Transfer-Encoding: chunked" http://localhost:5001/streams/$STREAM_ID -X POST

...and you see the busl.

setup

to setup to test and run busl, setup godep
and then:

$ godep go install
$ cp .sample.env .env
$ export $(cat .env)

test

to run tests:

$ godep go test ./...

run

to run the server:

$ godep go run main.go

deploy

docker setup

# Start
$ docker-compose start

# Grab the host / port combination chosen by docker
$ export URL=$(docker-compose port web 5000)

# Check health status
$ curl $URL/health
OK
Docker Pull Command
Owner
6cyx
Source Repository