Quickstart
Get up and running with Reinhardt in 5 minutes.
1. Install Reinhardt Admin CLI
While Reinhardt is on a pre-release (-rc.* / -alpha.*), cargo install requires an explicit --version because pre-releases are not selected by default. Once 0.1.0 stable ships, omit --version to pull the latest stable (or keep --version as an opt-in reproducibility pin). The literal below is auto-bumped by release-plz on each release.
cargo install reinhardt-admin-cli --version "0.1.2"2. Create your project
reinhardt-admin startproject my-api
cd my-api3. Create your first app
reinhardt-admin startapp hello --template restEdit hello/views.rs:
use reinhardt::prelude::*;
use reinhardt::get;
#[get("/hello", name = "hello_world")]
pub async fn hello_world() -> ViewResult<Response> {
Response::ok().with_body("Hello, Reinhardt!")
}4. Run
cargo make runserverVisit http://127.0.0.1:8000/hello in your browser.
See Getting Started for a complete guide, or explore the Tutorials to learn by building.