Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 385 Bytes

File metadata and controls

21 lines (15 loc) · 385 Bytes

React-Gin-Binary

This is some scaffolding of how to package your react app inside a go binary

Steps to reproduce:

touch main.go

# edit main.go

npx create-react-app ui
cd ui

#  add "homepage": "http://localhost/ui" to package.json

npm run build # or yarn build
cd ..
go-bindata-assetfs -o ui/bindata.go -pkg ui ui/build/...
go build -o singleBinary .
./singleBinary