Install Mosaic
Mosaic is Amalgame's web framework — one binary, N sites, automatic HTTPS/ACME, sessions, auth, reverse proxy.
First install the amc compiler, then add the framework packages:
amc package add web net-http tls # framework + HTTP/1.1 + TLS amc package add net-proxy # (optional) reverse proxy
A minimal server:
import Amalgame.Web
WebApp.New()
.Get("/", ctx => HttpResponse.New().Html("<h1>Hello Mosaic</h1>"))
.ServeHttps(443, "/etc/ssl/cert.pem", "/etc/ssl/key.pem")
Full reference: the Mosaic docs. Every release: get.amalgame.me/mosaic.