go-react-project
go-react-project copied to clipboard
A simple development boilerplate for Go (Golang) + React using gulp + webpack-dev-server
Go-React-Project
Go (Golang) + React Project development using Gulp + webpack-dev-server
(UPDATE 2017)
This repo is not maintained anymore. I now use create-react-app for react, and a different repo for golang as API server.
Pre Installation
- npm
- go (1.6+)
- glide (https://github.com/Masterminds/glide)
Installation
- 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
.
Configuration
./env.json
- You can set a different port and postgresql connection settings
Build
This compiles your .js files into public/assets/js/
npm run build
Uses
- Echo (https://github.com/labstack/echo)
- React
- Redux
- React Router
- Webpack
- Gulp
- Glide