Convert any web app into native app, which uses system's inbuilt webview,
Bundle any web project into native app and loads offline,
You can call go functions from the web app to achieve native functionality,
lightweight alternative to electron
Uses the awesome webview project by zserge
- Make sure you have
goandnodepresent, you may also use thedocker-composefiles present in the package instead - Clone the project
- Create
config.gospecifiying the configuration for the app window, useconfig.go.exampleas template - Put the web app source code in folder called
web, make sure its an npm project withbuildandstartscripts inpackage.jsonand it builds out the project tobuildfolder with anindex.htmlat root, also make sure that when project is run locally withnpm startwe can change the local port using env varPORT,create-react-appwas considered as an example for this setup - You can change the
build_web_app.shandrun.shif this doesn't match your setup - Run
run.shto run your app during development - Run
build.shto build out the app inbuildfolder that can then be bundled and distributed
- Make sure you have
gopresent, you may also use thedocker-composefiles present in the package instead - Clone the project
- Create
config.gospecifiying the configuration for the app window, useconfig.go.exampleas template - Just run
webapp.shwith two arguments, url of the web app and the name for app binary - Example
sh webapp.sh https://trello.com Trello - This will build out a binary in
buildfolder
- Since this uses the operating system's webview the behavior is inconsistent

