Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Examples & next steps

Learn by building

  1. Install the binary
  2. Getting started
  3. Your first API
  4. Syntax + HTTP + Natives
  5. Views for HTML
  6. 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

Keep learning

GoalChapter
Types & modulesLanguage overview
DBDatabase
LoginAuth
Background workJobs
CLI flagsCLI