Go (Golang) SPA (Single Page Application) Template/Boilerplate.
This template allows you to embed your SPA files and build single executable application with single command.
Just put your SPA files into ./dist
directory and run
$ make
Application will be built into ./build/app
.
$ ./build/app
Open your browser at http://localhost:8080
and you should see your app running.
Put your SPA files into ./dist
directory and run
$ docker build -t go-spa .
This will build a very slim single-layered Docker image from scratch
which includes only application built.
$ docker run -p 8080:8080 go-spa
Open your browser at http://localhost:8080
and you should see your app running.