Files
handmade-revolt-backend/src/main.rs
2020-02-08 16:47:19 +00:00

24 lines
396 B
Rust

#![feature(proc_macro_hygiene, decl_macro)]
#[macro_use] extern crate rocket;
#[macro_use] extern crate rocket_contrib;
pub mod websocket;
pub mod database;
pub mod guards;
pub mod routes;
pub mod email;
use dotenv;
use std::thread;
fn main() {
dotenv::dotenv().ok();
database::connect();
thread::spawn(|| {
websocket::launch_server();
});
routes::mount(rocket::ignite()).launch();
}