jkuri / go-spa

Go (Golang) SPA (Single Page Application) Template/Boilerplate for generating single executable from your HTML5 SPA application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-spa

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.

1. Build

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.

2. Docker Build

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.

About

Go (Golang) SPA (Single Page Application) Template/Boilerplate for generating single executable from your HTML5 SPA application.


Languages

Language:Go 52.4%Language:Dockerfile 25.0%Language:Makefile 22.5%