frontend

package
v0.1.65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 8 Imported by: 0

README

Vue 3 + Vite

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Learn more about IDE Support for Vue in the Vue Docs Scaling up Guide.

Developing ONLY the Frontend

From within the api/frontend directory, run:

/api/frontend> pnpm dev

Then open your browser to http://localhost:5173 to see the frontend application

Documentation

Overview

This package provides an HTTP handler for serving a Single Page Application (SPA) from embedded files using Go's embed package. It serves the SPA's static files and ensures that all non-existent routes fall back to the main index.html file, enabling client-side routing.

NOTE: Embedding requires the files to be present at compile time and must be in a subdirectory. For this reason, this package is located in the 'web' directory, and the SPA files should be in 'web/dist'.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SpaRouter added in v0.1.44

func SpaRouter() http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL