SvelteKit-GoFiber-Template

Sveltekit Gofiber Template

SvelteKit frontend using Tailwindcss with a Go fiber backend using GORM (postgresDB). Use Jest for unit testing and magic for user auth.

SvelteKit/Gofiber Template

Frontend

Backend

DB

API-Postman

You can import the api calls from .postman_.json to use as a api template.

using podman (from Dockerfile)

I personally prefer podman/buildah/podman-compose over Docker

To build an image (e.g. backend)

podman build ./backend -t go-fiber:latest
# you can use no cache just like in docker --no-cache

To confirm that it loaded correctly (rg being ripgrep)

podman images | rg "go-fiber"

To run the image as a container

podman run -P -d go-fiber:latest

To view the container

podman container list -a

Should you run into issues (the container exited)

podman logs -t {name}

To enter a running container

podman exec -it <Container ID> /bin/bash

Notes

Pr welcome

Top categories

Loading Svelte Themes