iotweb

command module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2018 License: MIT Imports: 7 Imported by: 0

README

GoDoc Go Report Card

IoT Web Server

A very small web server written in Go for static sites served on devices such as the Raspberry Pi. Uses bunyan logging.

Env

Uses environment variables for configuration. The following are default values, override where needed.

  • export IOTWEB_BASEPATH=/
  • export IOTWEB_STATICPATH=www
  • export IOTWEB_PORT=8080
  • export IOTWEB_FSAPIPATH=yes
  • export IOTWEB_FSAPIPATH=fsapi/

Try

docker run -it --rm -p 8080:8080 cjimti/iotweb:1.1.1

for arm base devices use:

docker run -it --rm -p 8080:8080 cjimti/iotweb:armhf-1.1.1

Development

Uses goreleaser:

Install goreleaser with brew (mac): brew install goreleaser/tap/goreleaser

Build without releasing: goreleaser --skip-publish --rm-dist --skip-validate

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL