server

command
v0.0.0-...-3a6525e Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Command server is an example app wiring up the golite packages: config from .env / env vars / flags, a colored logger, SQLite with migrations, a River job queue with RiverUI, and a small JSON API.

go run ./samples/server -log-level debug
curl -X POST localhost:7880/api/greetings -d '{"name":"Tim"}'
curl localhost:7880/api/greetings
open http://localhost:7880/riverui/

Directories

Path Synopsis
Package migrations embeds the app's SQL migrations into the binary.
Package migrations embeds the app's SQL migrations into the binary.

Jump to

Keyboard shortcuts

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