a lot of shit
This commit is contained in:
parent
002767b85a
commit
c3f365e1f6
16 changed files with 1247 additions and 2 deletions
22
src/main.rs
22
src/main.rs
|
|
@ -1,3 +1,21 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
mod logger;
|
||||
use crate::logger::logger as log;
|
||||
mod debug;
|
||||
mod assets;
|
||||
mod routing;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
// build our application with auto-routing
|
||||
let app = routing::create_router();
|
||||
|
||||
debug::static_content::print_static_content();
|
||||
|
||||
// run our app with hyper, listening globally on port 3000
|
||||
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
|
||||
log(0, "Server started successfully on port 3000", true);
|
||||
axum::serve(listener, app).await.unwrap();
|
||||
|
||||
log(0, "gkweb started", true)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue