hello_world/
hello_world.rs1use expressjs::prelude::*;
2
3#[tokio::main]
4async fn main() {
5 let mut app = express();
6
7 app.get("/", async |_req, res| res.send_text("Hello World!"));
8
9 app.listen(9000, async |port| {
10 println!("🚀 Server running on http://localhost:{port}/");
11 })
12 .await;
13}