Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peteretelej/comet
Boostrap Desktop Apps with Go (wraps Electron in a neat cli)
https://github.com/peteretelej/comet
bootstrap electron go golang vuejs
Last synced: 3 months ago
JSON representation
Boostrap Desktop Apps with Go (wraps Electron in a neat cli)
- Host: GitHub
- URL: https://github.com/peteretelej/comet
- Owner: peteretelej
- Created: 2017-05-24T16:47:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-13T08:28:06.000Z (over 7 years ago)
- Last Synced: 2024-06-20T15:02:00.883Z (5 months ago)
- Topics: bootstrap, electron, go, golang, vuejs
- Language: Go
- Homepage:
- Size: 86.9 KB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-golang-repositories - comet
README
# 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](https://img.shields.io/badge/stability-work_in_progress-lightgrey.svg)This is __Work In Progress__: Not ready for use.
### Basic Usage
Get comet
``` bash
go get -u github.com/peteretelej/comet
```Initialize and launch
```
comet init
# initiliazes cometcomet
# 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 ~/myapphtmlcomet -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
- [x] Define basic projects structure and working example
- [x] Launch electron from Go
- [x] Setup comet CLI subcommands & usage (init,start)
- [x] Support serving static website as desktop app
- [x] Support serving abitrary url as app
- [ ] Add reset/ refresh command
- [ ] Setup app templates for easier bootstrapping options
- [ ] __Packaging and distribution__