mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-03-15 02:12:37 +00:00
14 lines
350 B
Rust
14 lines
350 B
Rust
use comunic_server::data::config::{conf, Config};
|
|
use comunic_server::helpers::database;
|
|
|
|
fn main() {
|
|
|
|
// Load configuration
|
|
Config::load("config.yaml").expect("Could not load configuration!");
|
|
|
|
// Connect to the database
|
|
database::connect(&conf().database).expect("Could not connect to database!");
|
|
|
|
println!("Hello, world!");
|
|
}
|