frizzante Svelte Themes

Frizzante

An opinionated web server framework written in Go that uses Svelte to render web pages.

Frizzante

Latest Release Build Status

Frizzante is an opinionated web server framework written in Go that uses Svelte to render web pages.

Prerequisites

Install frizzante, air, bun, build-essential.

sudo apt install build-essential
go install github.com/razshare/frizzante@latest
go install github.com/air-verse/air@latest
which bun || curl -fsSL https://bun.sh/install | bash

[!TIP] Remember to add Go binaries to your path.

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin

Get started

Create a project with

frizzante -c MyProject

Install dependencies with

make install

Start development with

make dev

[!NOTE] The default makefile uses Bun to install dependencies while in development mode.

You can swap Bun out with whatever runtime you want to use to develop by replacing all bun references within the makefile with the equivalent of whatever runtime you'd like to use.

This change will have no impact on your application's performance, Bun is only used to compile .svelte files into .js files in development mode or when building for production.

Build with

make build

This will create a .gen/bin/app standalone executable.

[!NOTE] The final executable uses V8 bindings to run JavaScript code on the server in order to render svelte components.

For that reason, the first run may take some time, just be patient.

Subsequent runs will take considerably less time.

[!NOTE] Frizzante is aimed mainly at linux distributions.
Feel free to contribute improvements for other platforms.

Top categories

Loading Svelte Themes