This project is a boilerplate for Gin using React and TypeScript based off wadahiro/gin-react-boilerplate.
- Install some golang tools by
go get
go get -u github.com/GeertJohan/go.rice
go get -u github.com/GeertJohan/go.rice/rice
go get -u github.com/gin-gonic/gin
go get -u github.com/gin-gonic/contrib/static
go get -u github.com/pilu/fresh
- Install JavaScript dependencies
npm install
Start webpack and gin with watch mode.
npm run dev & fresh
Run webpack with production mode. All you have to do is run npm run build
.
npm run build
The built artifact is created at ./dist/server
.
Licensed under the MIT license.