go_frontend_boilerplate

module
v0.0.0-...-6a2b0a1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: Apache-2.0

README

golang-frontend-boilerplate

boilerplate for golang frontend development

Setup

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
Installation

1- Ubuntu Linux:

  • Run Setup and Install Scripts
$ . ./setup.sh
Configure

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

Test

$ go test ./src/spa_app/cmd/app

Run

Development
$ go build ./src/spa_app/cmd/app
$ ./app
$ curl http://localhost:8080
Production

1- Start App

$ sh start.sh
$ curl http://localhost:8080

2- Stop App

$ sh stop.sh

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL