wails-template/README.md
2025-02-19 15:07:42 +01:00

41 lines
1.3 KiB
Markdown

# README
## Links
- [gorm](https://gorm.io/docs/)
- [SQLite ERD](https://www.convertcsv.com/sqlite-online.htm)
- [Svelte5](https://svelte.dev/docs/svelte/what-are-runes)
- [SvelteRouting](https://github.com/EmilTholin/svelte-routing)
- [Flowbyte UI lib](https://flowbite-svelte.com/docs/pages/introduction)
- [Tailwind](https://tailwindcss.com/docs/flex-basis)
## Fixes
## X-Compilation
for [Windows](https://github.com/wailsapp/wails/issues/1292):
```sh
sudo pacman -S mingw-w64-gcc
wails dev # to generate bindings
env GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ CGO_CXXFLAGS="-IC:\msys64\mingw64\include" wails build -ldflags '-extldflags "-static"' -skipbindings
```
## Branches:
- main: in memory
- gorm-sqlite: gorm with SQLite and one to many association.
## 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`.