web

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 3 Imported by: 0

README

Bifrost Issuer Web

Bifrost Issuer Web is a web site for creating private keys and issuing certificates. It uses htmx.org for the user interfaces and hyperscript for interactivity.

Screenshots

Light mode (default)

Bifrost Web Light Colors

Dark mode

Bifrost Web Dark Colors

Development

You'll need Node.js and NPM installed.

Install dependencies and run esbuild in watch mode:

npm install
npm run dev

Start issuer by running env WEB=dev go run cmd/issuer/main.go in the root directory of the project. If WEB is set to dev, issuer will serve static files from the static directory. Otherwise, if WEB is a truthy value, issuer will serve static files from the embedded filesystem.

Examples
# Run in project root

# Serve static files from filesystem
env WEB=dev go run cmd/issuer/main.go

# Serve static files snapshot of filesystem embedded during build
env WEB=1 go run cmd/issuer/main.go

# Disable web interface
go run cmd/issuer/main.go
# or
env WEB=0 go run cmd/issuer/main.go

Documentation

Overview

Package web embeds static website files that webservers can serve up to clients.

Index

Constants

This section is empty.

Variables

View Source
var (

	// Static is the embedded filesystem containing the static website files.
	Static fs.FS

	// Templates is the parsed HTML templates.
	Templates *template.Template
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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