Quickstart
Get up and running with Reinhardt in 5 minutes.
1. Install Reinhardt Admin CLI
cargo install reinhardt-admin-cli2. Create your project
reinhardt-admin startproject my-api
cd my-api3. Create your first app
reinhardt-admin startapp hello --template-type restfulEdit hello/views.rs:
use reinhardt::prelude::*;
use reinhardt::get;
#[get("/hello", name = "hello_world")]
pub async fn hello_world() -> Result<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.