static-ws

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 10 Imported by: 0

README

static-ws

Serve static content

Usage

static-ws is focused in serve SPA applications (Angular, React) with routing. It's useful when you need to clustering you frontend application

static-ws path/to/dist

By default, the server will start at port 8080, but you can use the -p flag and change it accordingly you need.

Install

Manually

Download the pre-compiled binaries from the OSS releases page and copy them to the desired location.

Running with Docker

You can also use it within a Docker container. To do that, you'll need to execute something like the examples below.

docker run --rm --privileged wesleimp/static-ws /path/to/dist/
Compiling from source

If you just want to build from source for whatever reason, follow these steps:

clone

git clone git@github.com:wesleimp/static-ws
cd static-ws

dependencies

go mod tidy # or make deps

build

go build -o bin/static-ws . # or make build

verify it works

./bin/static-ws -h

LICENSE

MIT

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