Skip to content

bradystone/gotron

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.5%
  • Go 3.5%
  • Other 1.0%