1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-26 07:19:22 +00:00
comunicapiv3/src/main.rs

14 lines
350 B
Rust
Raw Normal View History

2020-05-20 17:05:59 +00:00
use comunic_server::data::config::{conf, Config};
2020-05-21 07:21:58 +00:00
use comunic_server::helpers::database;
2020-05-20 17:05:59 +00:00
2020-05-20 15:46:05 +00:00
fn main() {
2020-05-20 17:05:59 +00:00
// Load configuration
Config::load("config.yaml").expect("Could not load configuration!");
2020-05-21 07:21:58 +00:00
// Connect to the database
database::connect(&conf().database).expect("Could not connect to database!");
2020-05-20 17:05:59 +00:00
2020-05-20 15:46:05 +00:00
println!("Hello, world!");
}