Examples & next steps
Learn by building
- Install the binary
- Getting started
- Your first API
- Syntax + HTTP + Natives
- Views for HTML
- Deploy
Minimal recipes (copy into your app)
Health JSON
get "/health" {
def health(req) {
return json({ "status": "ok" })
}
}
Path param
get "/hello/{name}" {
def hello(req) {
return json({ "message": "Hello, " + req.param("name") + "!" })
}
}
HTML view
get "/hi/{name}" {
def hi(req) {
return view("hello/show", { "name": req.param("name") })
}
}
Sample apps
If your team ships sample trees (blog, queue worker), install them as normal app directories and run:
cd path/to/sample-app
export ATL_DATABASE_URL="sqlite:./tmp/app.db?mode=rwc"
atlantus db migrate --path .
atlantus dev --path . --port 3000
You never need cargo to run a sample app.
Editor
VS Code: install the Atlantus / .atl extension when your team distributes it
(VSIX or marketplace). The LSP talks to the same language surface as atlantus check.
Docs site
- Public: https://atl-docs.atlantus.network
- Local preview is for doc authors, not app developers
Keep learning
| Goal | Chapter |
|---|---|
| Types & modules | Language overview |
| DB | Database |
| Login | Auth |
| Background work | Jobs |
| CLI flags | CLI |