ws: a nimble webserver with friends

Go Report Card License

ws

A nimble web server

ws is a prototyping platform for websites.

ws started as a nimble static content web server.
It supports an init option which generates a project directory structure, creates self signed SSL keys and displays suggested environment variables for use with ws. If the directory structure already exists it will display the suggest setup.

Requirements

Setup

ws is “go gettable”

    go get github.com/rsdoiel/ws/...

compiling from source

Here’s my basic approach to get things setup. I assume you’ve got Golang already installed.

  git clone https://github.com/rsdoiel/ws $HOME/src/github.com/rsdoiel/ws
  cd $HOME/src/github.com/rsdoiel/ws
  go test
  go build
  go build cmds/ws/ws.go

If everything compiles fine then I do something like this–

  go install cmds/ws/ws.go

Compiled versions

You can also grab one of the precompiled version at https://github.com/rsdoiel/ws/releases/latest

features

ws init takes three actions

Configuration

Configuration for ws can be passed directly from environment variables. That makes them container friendly. The environment can be overwritten by command line options.

The standard set of environment variables are

command line options