boilerplate for golang frontend development
1- Ensure a non-root user is setup with password-less sudo powers
2- Clone this repo
$ git clone https://gitlab.synercloud.io/general/golang-frontend-boilerplate.git
$ cd golang-frontend-boilerplate
1- Ubuntu Linux:
- Run Setup and Install Scripts
$ . ./setup.sh
1- copy conf.json.example
$ cp conf.json.example conf.json
$ vi conf.json
2- open conf.json in a text editor and edit json settings as needed
$ go test ./src/spa_app/cmd/app
$ go build ./src/spa_app/cmd/app
$ ./app
$ curl http://localhost:8080
1- Start App
$ sh start.sh
$ curl http://localhost:8080
2- Stop App
$ sh stop.sh