Skip to content

andrewmeissner/react-gin-binary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

go, gin, and react from a single binary

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •