go-reactjs-example
go-reactjs-example copied to clipboard
This is an exmple web use Golang And ReactJS
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^