https://github.com/emarifer/test-wails
Wails Framework Demo Desktop App Using HTMX & a-h/Templ for Go
https://github.com/emarifer/test-wails
daisyui htmx tailwindcss templ wails wails-app
Last synced: about 1 month ago
JSON representation
Wails Framework Demo Desktop App Using HTMX & a-h/Templ for Go
- Host: GitHub
- URL: https://github.com/emarifer/test-wails
- Owner: emarifer
- License: mit
- Created: 2024-10-27T13:12:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-27T17:50:14.000Z (over 1 year ago)
- Last Synced: 2025-03-13T23:30:07.197Z (over 1 year ago)
- Topics: daisyui, htmx, tailwindcss, templ, wails, wails-app
- Language: NSIS
- Homepage:
- Size: 455 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
## About
This template uses a unique combination of pure htmx for interactivity plus Go templates for creating components and forms, also included:
- Built-in added styling to show off some of Tailwind and Daisyui.
- Uses HTMX for MPA style interactivity on a single page as per SPA.
- Added custom Chi middleware for handling HTMX calls in an easy to maintain routing configuration.
- Built-in version display linked to version variable from main which can be updated on app build for CICD and/or during runtime.
- Scripts configured to use the Bun runtime to launch Vite. (Make sure you have bun installed first)
- To switch back to npm instead of bun, edit wails.json and package.json (or use NPM under the @npm tag)
- Also using https://templ.guide/ for components and templates use "templ generate" to update templ files.
## Initial Setup Instructions
- Install Bun (or use NPM under the @npm tag)
- Change go.mod module
- Change app.go components package import
- **For Linux build tag webkit2_40 is required e.g -tags webkit2_40**
## Live Development
To run in live development mode, run `wails dev` in the project directory. In another terminal, go into the `frontend`
directory and run `bun run dev`. The frontend dev server will run on http://localhost:34115. Connect to this in your
browser and connect to your application.
## Building
To build a redistributable, production mode package, use `wails build`.