2 releases

0.1.12 Nov 26, 2024
0.1.11 Nov 22, 2024

#2175 in Web programming

24 downloads per month

MIT license

800KB
14K SLoC

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/.

Dependencies

~13–26MB
~402K SLoC