/frizzante

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

Primary LanguageGoApache License 2.0Apache-2.0

Get started

Create a new project using the starter template.

git clone https://github.com/razshare/frizzante-starter && cd frizzante-starter && rm .git -fr

Note

Make sure you have Go and Bun installed.
If you'd rather use a different runtime than Bun to update your javascript dependencies, see makefile and change all occurrences of bun and bunx with the equivalent of whatever runtime you'd like to use.

Update dependencies

make update

Note

Make sure you have build-essential installed

sudo apt install build-essential

Then start the server

make start

or build it

make build

Note

The .dist directory is embedded, which makes the final executable completely portable.

That being said, you can still create a ".dist" directory near your executable.
Whenever the server will try to access a file missing from the embedded file system, the server will fall back to the nearby ".dist" directory instead.

Note

This project is aimed mainly at linux distributions.
Feel free to contribute any fixes for other platforms.