Giter Site home page Giter Site logo

cjimti / iotweb Goto Github PK

View Code? Open in Web Editor NEW
23.0 7.0 9.0 9 KB

Small (4MB), fast static web server for IoT devices. Written in Go

Home Page: https://github.com/txn2/asws

License: MIT License

Go 89.43% HTML 5.14% Dockerfile 5.43%
raspberry-pi web-server static-site armhf golang docker docker-image docker-container

iotweb's Introduction

UPDATE: This is an archived Project - For an updated version of iotweb, see https://github.com/txn2/asws, asws is a small fast static web server written in Go.

GoDoc Go Report Card Docker Image Size

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

iotweb's People

Contributors

cjimti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

iotweb's Issues

Feature request - ETH0 as DHCP server

Is there an easy way to make the ETH0 act as an DHCP server? I'm trying to connect WLAN client to my mobile, which act as my internet connection (this works fine) and then through ETH0 to my routers WAN port. I'm no network specialist so I'm not sure of all the technical terms but I think in some direction bridging WLAN -> ETH0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.