Help us shape the future of Go! Take the 2026 Go Developer Survey

web-template

command module
v0.99.0-dev Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

README

Go + React web template

Travis CI

Template for:

  • Go for webserver
  • Typescript + React for frontend
  • Package into single binary

Dev setup

Requires:

  • make
  • go (+ dep)
  • yarn

Steps:

  1. Clone/fork repo
  2. Rename (TODO)
  3. make devsetup
How to run for development
  1. Terminal 1 for npm build: make jsdev
  2. Terminal 2 for Go web server make godev
  3. Open browser and activate live-reload

Changing Go code will be re-built by fresh and changing JS/TS will be re-built by webpack automatically.

Build

Build a single binary with assets included:

make
make package

Version is based on the git tag so git tag 1.0 before building.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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