Go (Golang) + React Project development using Gulp + webpack-dev-server
This repo is not maintained anymore. I now use create-react-app for react, and a different repo for golang as API server.
- npm
- go (1.6+)
- glide (https://github.com/Masterminds/glide)
- Clone this repository.
git clone https://github.com/mewben/go-react-project.git <project-name>
cd <project-name>
-
Edit
glide.yaml
. Change the project name -
Install the dependencies.
npm install
glide install
- Run dev
npm start
The server runs at http://localhost:8081
by default.
The client at http://localhost:8082
.
./env.json
- You can set a different port and postgresql connection settings
This compiles your .js files into public/assets/js/
npm run build
- Echo (https://github.com/labstack/echo)
- React
- Redux
- React Router
- Webpack
- Gulp
- Glide