To use this template, perform the following
wails3 init -n my-awesome-project -t https://github.com/davidscottmills/wails-svelte-vite-template
Congratulations on generating your Wails3 application! This README will guide you through the next steps to get your project up and running.
The wails3 cli does not remove the .git
directory, so do the following step and add your own source control.
rm -rf .git
There are some issues when initially runing after generating from the template. You may see something like:
sh: <path to your project>/frontend/node_modules/.bin/vite: Permission denied
If you encouter this, perform the following:
cd frontend
rm -rf node_modules package-lock.json
npm i
cd ..
wails3 dev
Navigate to your project directory in the terminal.
To run your application in development mode, use the following command:
wails3 generate bindings -ts
wails3 dev
This will start your application and enable hot-reloading for both frontend and backend changes.
To build your application for production, use:
wails3 build
This will create a production-ready executable in the build
directory.
Now that you have your project set up, it's time to explore the features that Wails3 offers:
Check out the examples: The best way to learn is by example. Visit the examples
directory in the v3/examples
directory to see various sample applications.
Run an example: To run any of the examples, navigate to the example's directory and use:
go run .
Note: Some examples may be under development during the alpha phase.
Explore the documentation: Visit the Wails3 documentation for in-depth guides and API references.
Join the community: Have questions or want to share your progress? Join the Wails Discord or visit the Wails discussions on GitHub.
Take a moment to familiarize yourself with your project structure:
frontend/
: Contains your frontend code (HTML, CSS, JavaScript/TypeScript)main.go
: The entry point of your Go backendapp.go
: Define your application structure and methods herewails.json
: Configuration file for your Wails projectfrontend/
directory to create your desired UI.main.go
.wails3 dev
to see your changes in real-time.wails3 build
.Happy coding with Wails3! If you encounter any issues or have questions, don't hesitate to consult the documentation or reach out to the Wails community.