Skip to content

Installation

Requirements

Add Dependency

Add Sake to your navi.toml:

toml
[dependencies]
sake = "0.1"

Verify Installation

Create a minimal server:

nv
use sake.{Engine, func_handler};

fn main() throws {
    let app = Engine.with_defaults();

    app.get("/", func_handler(|ctx| {
        ctx.string("It works.");
    }));

    try app.run(":8080");
}

Run:

bash
navi run main.nv

You should see:

🍶 Sake Framework
==================
Server address: :8080
...
🍶 Server ready at :8080

Released under the MIT License. Built for Navi.