Skip to content

A starter template combining Wails (Go) for desktop apps with Astro for frontend rendering, Preact for lightweight UI components, Tailwind CSS + DaisyUI for styling, and Vite for fast bundling. Designed for building cross-platform desktop apps with a modern web stack and minimal overhead.

License

Notifications You must be signed in to change notification settings

mbstack/wails-astro-daisyui-preact-template

Repository files navigation

wails-astro-daisyui-preact-template

A starter template combining Wails (Go) for desktop apps with Astro for frontend rendering, Preact for lightweight UI components, Tailwind CSS + DaisyUI for styling, and Vite for fast bundling. Designed for building cross-platform desktop apps with a modern web stack and minimal overhead.

Introduction

A template for Wails v2.11.0 with Astro v5. (TypeScript + Daisyui + Preact + Vite)

Current Versions:

  • Astro v5.16.6
  • Wails v2.11.0
  • Preact v10.28.1
  • Daisyui v5.5.14
  • Tailwindcss v4.1.18

Getting Started

Prerequisites

Creating the Project

Create a new Application with the Wails CLI and this template:

wails init -n myprojectname -t https://github.com/mbstack/wails-astro-daisyui-preact-template

Live Development

To run in live development mode, run wails dev in the project directory. This will run a Vite development server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect to this in your browser, and you can call your Go code from devtools.

Building

To build a redistributable, production mode package, use wails build.

You can configure the project by editing wails.json. More information about the project settings can be found here: https://wails.io/docs/reference/project-config

About

A starter template combining Wails (Go) for desktop apps with Astro for frontend rendering, Preact for lightweight UI components, Tailwind CSS + DaisyUI for styling, and Vite for fast bundling. Designed for building cross-platform desktop apps with a modern web stack and minimal overhead.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published