BLOG-43 init: actix-web project
All checks were successful
Frontend CI / build (push) Successful in 1m30s

This commit is contained in:
SquidSpirit 2025-05-05 01:08:56 +08:00
parent 8d33f2bae3
commit 98a9ecfd86
4 changed files with 1536 additions and 0 deletions

1
backend/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

1519
backend/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

7
backend/Cargo.toml Normal file
View File

@ -0,0 +1,7 @@
[package]
name = "squidspirit-blog"
version = "0.1.1"
edition = "2024"
[dependencies]
actix-web = "4.10.2"

9
backend/src/main.rs Normal file
View File

@ -0,0 +1,9 @@
use actix_web::{App, HttpResponse, HttpServer, web};
#[actix_web::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| App::new().route("/", web::get().to(HttpResponse::Ok)))
.bind(("127.0.0.1", 8080))?
.run()
.await
}