https://github.com/h8gi/wails-sveltekit-template
https://github.com/h8gi/wails-sveltekit-template
svelte sveltekit typescript wails
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/h8gi/wails-sveltekit-template
- Owner: h8gi
- Created: 2022-07-27T17:10:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-14T07:49:01.000Z (over 3 years ago)
- Last Synced: 2024-06-21T20:03:08.345Z (over 1 year ago)
- Topics: svelte, sveltekit, typescript, wails
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
## About
This is the Wails SvelteKit template.
This template uses [adapter-static(SPA)](https://github.com/sveltejs/kit/tree/master/packages/adapter-static#spa-mode) to make generated files embeddable.
## Getting Started
### Installing pnpm
https://pnpm.io/installation
### Installing Wails
```sh
go install github.com/wailsapp/wails/v2/cmd/wails@latest
```
### Creating a Project
```sh
wails init -n YOUR_PROJECT_NAME -t https://github.com/h8gi/wails-sveltekit-template
```
`wailsjs` modules is located in `/frontend/src/lib` so that you can call them like `$lib/wailsjs/go/main/App` in svelte files.
## 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 `npm 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`.