cloud api for the beacon blink(1) usb light
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
auto
beacon
.gitignore
.hound.yml
.travis.yml
.zappr.yaml
CHANGELOG.md
LICENSE
Makefile
README.md
codecov.yaml
glide.lock
glide.yaml
main.go

README.md

beacon.api

travis-img codecov-img version-img docker-img docs-img reportcard

The golang api server for the beacon blink(1) platform.

Setup

To get started locally, you will need to have a running redis server. The connection used by the application at runtime can be configured using the REDIS_URI environment variable or the -redisuri command line argument (env var will take precedence).

Server & Device Keys

Communication between the server and prospective devices leverage rsa public & private keys to authenticate with one another. The server loads this key at runtime and will provide the devices with a public version of it on "welcome".

To generate the server key:

mkdir .keys
openssl genrsa -des3 -out .keys/private.pem 2048
openssl rsa -in .keys/private.pem -outform PEM -pubout -out .keys/public.pem

Contributing

All contributions welcome.