/comet

Boostrap Desktop Apps with Go (wraps Electron in a neat cli)

Primary LanguageGo

comet - Desktop Apps with Go

Boostrap for desktop apps with Go; wraps electron in a neat cli for packaging and distributing static directories, local servers, public services etc as desktop apps.

Work In Progress

stability-wip

This is Work In Progress: Not ready for use.

Basic Usage

Get comet

go get -u github.com/peteretelej/comet

Initialize and launch

comet init
# initiliazes comet

comet 
# starts app (initializes if needed)

Launch Static Directory Single Page App/ PWA as desktop app

Assuming the directory ~/myapphtml is a static website with an index.html

# in any directory
comet init
comet -static ~/myapphtml

comet -static $GOPATH/src/github.com/peteretelej/comet/demo
# launches the demo directory that comes with comet

Launch Website/ Web App as Desktop app

Serve a publicly accessible url as desktop app

comet -url https://etelej.com

  • Note: changing the start URL (loadURL) is permanent (i.e. affects next run of comet), the default start url is http://localhost:8080, ie revert with comet start -url http://localhost:8080

Other commands

comet reset 
# resets the comet installation on the directory

TODO

  • Define basic projects structure and working example
  • Launch electron from Go
  • Setup comet CLI subcommands & usage (init,start)
  • Support serving static website as desktop app
  • Support serving abitrary url as app
  • Add reset/ refresh command
  • Setup app templates for easier bootstrapping options
  • Packaging and distribution