swordmaster-cli 0.1.0

CLI tool to scaffold projects using the Swordmaster framework
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod app;
mod domain;
mod infrastructure;

use swordmaster::server;
use infrastructure::database::migration::Migrator;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    dotenvy::dotenv().ok();
    swordmaster::tracing::init_tracing();

    server::run_with_migrator::<Migrator, _>(
        |ctx| app::routes::build_router(ctx),
        true,
    )
    .await
}