ht booking app in loco

This commit is contained in:
Priec
2026-05-15 17:35:09 +02:00
commit b230ff0b5a
73 changed files with 2831 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
use ht_booking::app::App;
#[allow(unused_imports)]
use loco_rs::{cli::playground, prelude::*};
#[tokio::main]
async fn main() -> loco_rs::Result<()> {
let _ctx = playground::<App>().await?;
// let active_model: articles::ActiveModel = articles::ActiveModel {
// title: Set(Some("how to build apps in 3 steps".to_string())),
// content: Set(Some("use Loco: https://loco.rs".to_string())),
// ..Default::default()
// };
// active_model.insert(&ctx.db).await.unwrap();
// let res = articles::Entity::find().all(&ctx.db).await.unwrap();
// println!("{:?}", res);
println!("welcome to playground. edit me at `examples/playground.rs`");
Ok(())
}