Quick start template for a Golang WebAssembly app with Svelte front end
The Go WASM Template in Svelte is a quick start template that allows users to compile a Golang to WebAssembly for use with a Svelte front end. It provides a simple web app that demonstrates how all the components fit together.
To set up the Go WASM Template in Svelte, follow the steps below:
Ensure you have the following pre-requisites installed:
Clone the plugin and the template repositories. Ensure that the directories are adjacent to each other for the template to work as intended.
If the directories are not adjacent, modify the path to gobridge in your main.go import accordingly.
If you have node and yarn installed, you can simply copy the provided command and paste it into your terminal to install the necessary dependencies. The command will also set up the required yarn link.
The Go WASM Template in Svelte is a useful starting point for developers looking to integrate Golang with WebAssembly in their Svelte projects. The template provides a simple web app that showcases the integration and can be easily set up by following the installation guide.