/go-reactjs-example

This is an exmple web use Golang And ReactJS

Primary LanguageGoMIT LicenseMIT

go-reactjs-example

This is an exmple web use Golang(macaron) And ReactJS

A real world project use go and reactjs. example: file-server

Build

Suggest install node through nvm

npm install -g webpack
npm install
make prod

Develop

Your need to know what is react, and golang. In develop mode, Support react hot reload

npm install
make dev

Open another terminal

go run main.go

Open browser, navgate to http://localhost:8000

Edit file public/HelloWorld.jsx Can see live change.

Good luck. ^0^

Thanks

  1. http://segmentfault.com/a/1190000002551952
  2. update package.json dependencies
  3. react hot reload QA