0x457 / gotron

Golang & Electron Boilerplate For Platform Independent Desktop Applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gotron

A boilerplate for cross-platform desktop applications using Golang and Electron.

Run

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

Hello Gotron

Tasks

  • 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

Frontend Development Workflow

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.

License

MIT

Except Roboto (ui/js/src/Roboto-Light.ttf) which is licensed under Apache 2.0
https://github.com/google/roboto

About

Golang & Electron Boilerplate For Platform Independent Desktop Applications

License:MIT License


Languages

Language:JavaScript 95.6%Language:Go 3.5%Language:CSS 0.5%Language:HTML 0.5%