A boilerplate for cross-platform desktop applications using Golang and Electron.
go, nodejs and npm should be available on your system.
Install Electron globally
npm install -g electron
Clone to your go workspace (e.g. go/src)
git clone https://github.com/equanox/gotron
Use npm install script and start the application
cd gotron
npm run install
go run main.go
Now you should see this
- Basic js + webpack example
- Typscript example
- Elm example
- React example
- Vue.js example
- Electron appearance on OS
- Create executables for Win, MacOS, Linux
- Config for go-nodejs socket
Open ui/js/src/app.js and replace line 6 with
topic.innerHTML = 'Hello Frontend Workflow';
In Gotron root dir type
npm run build
go run main.go
Reload updated index.js using 'r' key.
MIT
Except Roboto (ui/js/src/Roboto-Light.ttf) which is licensed under Apache 2.0
https://github.com/google/roboto