https://github.com/codeskyblue/go-reactjs-example
This is an exmple web use Golang And ReactJS
https://github.com/codeskyblue/go-reactjs-example
Last synced: about 1 year ago
JSON representation
This is an exmple web use Golang And ReactJS
- Host: GitHub
- URL: https://github.com/codeskyblue/go-reactjs-example
- Owner: codeskyblue
- License: mit
- Created: 2015-10-14T03:00:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-22T14:45:53.000Z (about 9 years ago)
- Last Synced: 2025-03-18T11:05:31.276Z (over 1 year ago)
- Language: Go
- Size: 217 KB
- Stars: 56
- Watchers: 4
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-reactjs-example
This is an exmple web use Golang([macaron](https://github.com/Unknwon/macaron)) And ReactJS
A real world project use go and reactjs. example: [file-server](https://github.com/codeskyblue/file-server)
## Build
Suggest install node through [nvm](https://github.com/creationix/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
Edit file `public/HelloWorld.jsx` Can see live change.
Good luck. ^0^
## Thanks
1.
1. [update package.json dependencies](http://stackoverflow.com/questions/16073603/how-do-i-update-each-dependency-in-package-json-to-the-latest-version)
1. [react hot reload QA](https://github.com/gaearon/react-hot-loader/blob/master/docs/Troubleshooting.md)