- add: initial database and auth services

This commit is contained in:
2024-11-25 20:45:16 -05:00
parent 6a35b5b373
commit 3ff22c9a5b
24 changed files with 817 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
#[cfg(test)]
mod tests {
use super::*;
use dotenv::dotenv;
use database_service::db::Database;
#[tokio::test]
async fn test_health_check() {
dotenv().ok();
let database_url = std::env::var("DATABASE_URL").unwrap();
let db = Database::new(&database_url).await;
assert!(db.health_check().await);
}
}