dev-resources.site
for different kinds of informations.
π¦ Axum - Hello World !
Published at
3/18/2024
Categories
rust
axum
webassembly
beginners
Author
yellowcoder
Author
11 person written this
yellowcoder
open
Axum is a web application framework that focuses on ergonomics and modularity.
This yellowcoder-tibbit tells you about a simple Axum - βHello World!β examples you can get quickly started with by following steps given in repo.
use axum::{response::Html, routing::get, Router};
#[tokio::main]
async fn main() {
let app = Router::new().route("/",get(||async {
Html("
<h1>Hello World</h1>
<h2>Here Rust Server is running....</h2>
Author: <strong>Yellow Coder</strong>
")
}));
let listener = tokio::net::TcpListener::bind("127.0.0.1:3000").await.unwrap();
axum::serve(listener,app).await.unwrap();
}
axum Article's
17 articles in total
Diesel vs SQLx in Raw and ORM Modes
read article
Rust Frameworks
read article
Axum/Tera & Real Shortcodes in Rust: A WordPress-Like Implementation
read article
Bundle frontend into axum binary using include_dir
read article
π¦ Axum - Hello World !
currently reading
Build a CRUD REST API with Rust Axum | Tutorial
read article
JWT Authentication in Rust [Full Guide: Axum and Actix]
read article
Fallback Routing with Axum
read article
AWS API Gateway with Lambda Web Adapter and Rust (axum)
read article
Server in Axum
read article
rs-api is based on a web/api application created by axum crate
read article
Server-side rendering in Rust - a Dall.E use-case
read article
Building a Proxy Server with Axum | Rust.
read article
Rust Axum - Extracting Query Param of Vec
read article
Process Streaming Uploads with Axum
read article
Getting Started with Axum | Rust
read article
Starter Axum, GraphQL and SeaORM Template
read article
Featured ones: