Wails Template Sveltekit screenshot

Wails Template Sveltekit

Author Avatar Theme by Plihelix
Updated: 22 Apr 2023
43 Stars

Wails.io template using SvelteKit - trades SSR for golang within the app

Overview

The Unofficial Wails Svelte Kit Static-Adapter is a template that allows for seamless integration between Svelte Kit and Wails.io. It provides a straightforward way to incorporate many useful features of Svelte Kit, such as routing, into a Wails.io application. This template is designed to be minimally invasive and greatly simplifies the process of setting up a Svelte Kit front end in Wails.

Features

  • Integration of Svelte Kit with Wails.io
  • Seamless routing between Svelte Kit and Wails.io
  • Live reload for fast development iteration

Installation

  1. Ensure you have a nodejs package manager installed (npm is the default).
  2. Install Wails by following the official installation guide.
  3. Clone the repository for the Unofficial Wails Svelte Kit Static-Adapter blank template.
  4. To run in live development mode, navigate to the project directory in the terminal and run wails dev. This will launch a Vite development server with hot reload functionality for frontend changes. Alternatively, you can also access the development server on http://localhost:34115 in your browser and call your Go code from devtools.
  5. To build a redistributable, production mode package, use wails build.

Summary

The Unofficial Wails Svelte Kit Static-Adapter provides a convenient and efficient way to combine the powerful features of Svelte Kit and Wails.io. By integrating Svelte Kit into a Wails.io application, developers can leverage the benefits of both frameworks and create rich web applications with ease. The template simplifies the installation and setup process, allowing for seamless development and production builds.