rwf-admin

Crates.iorwf-admin
lib.rsrwf-admin
version0.1.12
sourcesrc
created_at2024-11-22 18:07:17.715378
updated_at2024-11-26 03:35:27.933903
descriptionAdmin panel for applications written with the Rust Web Framework
homepagehttps://levkk.github.io/rwf/
repositoryhttps://github.com/levkk/rwf
max_upload_size
id1457583
size1,189,111
Lev Kokotov (levkk)

documentation

README

Rwf admin

Documentation Latest crate Reference docs

Rwf admin panel is a web application that provides a real time overview into web activity, background jobs queue insights, and allows to manipulate database models.

The admin panel can run as a standalone application or be integrated into an existing Rwf application.

Installation

To install Rwf admin panel into your application, you need to add it to your routes and preload its templates at application startup:

use rwf::prelude::*;
use rwf::http::{Server, Error};

#[tokio::main]
async fn main() -> Result<(), Error> {
    rwf_admin::install()?;

    let mut routes = vec![];
    // Add your routes...

    routes.extend(rwf_admin::routes());

    Server::new(routes)
        .launch("0.0.0.0:8000")
        .await
}

The admin panel is now running on https://localhost:8000/admin/.

Commit count: 552

cargo fmt