Congratulations on generating your template!
The next steps to complete the template are:
- Complete the fields in the
template.json
file.- It is really important to ensure
helpurl
is valid as this is where users of the template will be directed for help.
- It is really important to ensure
- Update
README.md
. - Edit
wails.json
and ensure all fields are correct, especially:wailsjsdir
- path to generate wailsjs modulesfrontend:install
- The command to install your frontend dependenciesfrontend:build
- The command to build your frontend
- Remove any
public
ordist
directories. - Delete this file.
You can test your template by running this command:
wails init -n test -t /Users/lvluo/Desktop/github.com/ctfang/go-gui-template
Once generated, do the following tests:
- Change into the new project directory and run
wails build
. A working binary should be generated in thebuild/bin
project directory. - Run
wails dev
. This will compile your app and run it.- You should be able to see your application running on http://localhost:34115/
You can publish a template to a git repository and use it as follows:
wails init -name test -t https://your/git/url
EG:
wails init -name test -t https://github.com/leaanthony/testtemplate