web-starter-kit

command module
v0.0.0-...-acccb75 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2016 License: MIT Imports: 5 Imported by: 0

README

web-starter-kit

Use Go, Webpack to build and package web application starter kit.

  1. Use sweb to make web server
  2. Use webpack to package all the frontend assets
  3. Use webpack-dev-server to support HMR
  4. Depends on GNU Make and fswatch

Demo:

  1. Use material-design-lite SCSS version as the basic style templates and customize the color and themes
  2. Use React to build a MDL Component button
  3. run make dev to start a local development watcher, auto watch assets change and go code change, restart the go web server
  4. run make dist to create distribution packages, including all the assets, templates and binary which can be deployed
  5. A DemoApi controller rendering JSON response
  6. A DemoController controller rendering HTML response using templates

Big thanks to:

  1. go-starter-kit
  2. Webpack your bags
  3. react-transform-hmr
  4. babel-preset-react-hmre

Hot module reload

See webpack-dev-server doc

  1. GO Web Server should render all aseets with prefix the dev-server domain http://localhost:8000
  2. As config in webpack.config.js, all the request (except the hot-update ones ) is proxied to GO web Server

Missing Parts:

  1. Sprite images management and auto-generation
  2. Config the port of both Go Web Server and webpack-dev-server, and config each one for the other

Contributions:

  1. acecode.tk@gmail.com for the HMR

License

MIT

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