pgml-dashboard 0.1.1

Web dashboard for PostgresML, an end-to-end machine learning platform for PostgreSQL
Documentation
use rocket::fs::FileServer;

#[rocket::main]
async fn main() {
    let clusters = pgml_dashboard::Clusters::new();
    clusters
        .add(-1, &pgml_dashboard::guards::default_database_url())
        .unwrap();

    let _ = rocket::build()
        .manage(clusters)
        .mount("/dashboard/static", FileServer::from("static"))
        .mount("/dashboard", pgml_dashboard::paths())
        .ignite()
        .await
        .expect("failed to ignite Rocket")
        .launch()
        .await
        .expect("failed to shut down Rocket");
}