/gin-ts-boilerplate

Primary LanguageJavaScriptMIT LicenseMIT

gin-typescript-react-boilerplate

About

This project is a boilerplate for Gin using React and TypeScript based off wadahiro/gin-react-boilerplate.

Requirements

Setup

  1. 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
  1. Install JavaScript dependencies
npm install

Run with development mode

Start webpack and gin with watch mode.

npm run dev & fresh

Release Build

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.

License

Licensed under the MIT license.