20 lines
466 B
Rust
20 lines
466 B
Rust
extern crate actix_web;
|
|
extern crate dotenv;
|
|
extern crate env_logger;
|
|
extern crate lootalot_db;
|
|
#[macro_use] extern crate serde;
|
|
|
|
mod server;
|
|
mod api;
|
|
|
|
fn main() {
|
|
std::env::set_var("RUST_LOG", "actix_web=info");
|
|
env_logger::init();
|
|
dotenv::dotenv().ok();
|
|
// TODO: Build a cli app with complete support of DbApi
|
|
// Server is started with 'serve' subcommand
|
|
// $ lootalot serve
|
|
// Start the server.
|
|
server::serve().ok();
|
|
}
|