Quickstart
Get up and running with Reinhardt in 5 minutes.
1. Install Reinhardt Admin CLI
Install the CLI with Cargo. The command below pins this guide to the documented release for reproducibility; omit --version to let Cargo choose the latest stable release. The literal below is release-managed.
cargo install reinhardt-admin-cli --version "0.2.0-rc.6"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.