Examples
Complete apps, small but realistic, each ready to deploy.
Complete apps, small but realistic, each ready to deploy with moor deploy from its directory. Each has a README that says what it shows and how to run it locally.
| Example | What it is | What it shows |
|---|---|---|
python-fastapi | A task list: FastAPI, uvicorn and a web page | uv and uv.lock, SQLite in the data directory, migrations as the release command, a health check that reads the database |
go-stdlib | A link shortener, with only the standard library | A build from go.mod alone, HOST and PORT, a graceful stop, data that two instances can share during a deploy |
node-express | A live poll: an Express API and a Vite front end | npm ci, a build script, pruning, the start script, assets cached for good, variables from [env] |
static-site | A team handbook | Clean URLs, a 404 page, headers, redirects that keep old links working |
container-go | A guestbook, in an image with one binary in it | runtime = "dockerfile", a multi-stage Containerfile, a user that is not root, resource limits, a release command with no shell. Needs Podman or Docker on the server |
To try them, install Moorage on your own computer (installing Moorage):
moor server init --preset localmoor server runThen, in another terminal, from an example's directory:
moor deployThe app is at http://<name>.localhost:8080: tasks, links, poll, handbook or guestbook. Chromium- and Firefox-based browsers open *.localhost addresses on their own; for curl, send the name as the Host header (curl -H 'Host: tasks.localhost' http://127.0.0.1:8080/).
testdata/apps has smaller apps, one per runtime, that Moorage's own tests deploy.