🎉 Inits backend

This commit is contained in:
Daniel Svitan 2025-05-10 12:15:00 +02:00
commit b8d3d427a3
5 changed files with 1653 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.idea/

1
backend/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

1633
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 = "backend"
version = "0.1.0"
edition = "2024"
[dependencies]
rocket = { version = "0.5.1" }

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

@ -0,0 +1,11 @@
#[macro_use] extern crate rocket;
#[get("/")]
async fn index() -> &'static str {
"Hello World!"
}
#[launch]
fn rocket() -> _ {
rocket::build().mount("/", routes![index])
}