getting-started
Getting Started: Serve a Static SPA
This tutorial walks you through serving a static Single Page Application (SPA) with environment variable exposure using servejs.
Prerequisites
- Go 1.25+
- A built SPA (e.g., React, Vue, Svelte, etc.)
Steps
-
Install servejs
-
Write a main.go
-
Run your server
-
Visit your app
Open http://localhost:8080 in your browser.