rapid-cli 0.6.0

The CLI tool for the Rapid framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use rapid_web::server::RapidServer;
use rapid_web::actix::HttpServer;
use rapid_web::rapid_web_codegen::{main, routes, rapid_configure_nextjs};

rapid_configure_nextjs!();

#[main]
async fn main() -> std::io::Result<()> {
    let app = RapidServer::create(None, None);


    app.listen(HttpServer::new(move || {
        RapidServer::fs_router(None, None, routes!("pages/api/routes"))
    })).await
}