go-reactjs-example

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

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

Go to latest
Published: Mar 22, 2017 License: MIT Imports: 7 Imported by: 0

README

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

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