Skip to content
forked from Equanox/gotron

Golang & Electron Boilerplate For Platform Independent Desktop Applications

License

Notifications You must be signed in to change notification settings

jdoklovic/gotron

This branch is 170 commits behind Equanox/gotron:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

661d79b · Apr 2, 2017

History

4 Commits
Apr 2, 2017
Apr 2, 2017
Apr 2, 2017
Apr 2, 2017
Mar 31, 2017
Apr 2, 2017
Apr 2, 2017
Apr 2, 2017
Apr 2, 2017

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%