ui
folder:src/index.html
is static (useful as landing page)src/app/index.html
is SPA and uses svelte-spa-router
for Routing (hash-based)ui
that embeds svelte build and exposes Handler()
which can be mounted on any router for serving frontend.make
will build frontend and then trigger go-build which embeds the frontend files and produces one final executable.Dockerfile
is included that builds frontend, backend and then produces a very small final alpine image with just the binary.go-svelte
string with your app name.make
to build everything (frontend + backend).dist/