This commit is contained in:
2026-01-28 11:09:24 +01:00
commit 439e93ce95
5 changed files with 1661 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/target

31
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,31 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug executable 'colota_backend'",
"type": "lldb",
"request": "launch",
"cargo": {
"args": [
"run",
"--bin=colota_backend"
]
},
"args": []
},
{
"name": "Debug unit tests in executable 'colota_backend'",
"type": "lldb",
"request": "launch",
"cargo": {
"args": [
"test",
"--bin=colota_backend"
]
}
}
]
}

1606
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

9
Cargo.toml Normal file
View File

@@ -0,0 +1,9 @@
[package]
name = "colota_backend"
version = "0.1.0"
edition = "2024"
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
actix-web = "4.x.x"

14
src/main.rs Normal file
View File

@@ -0,0 +1,14 @@
use actix_web::{web, App, HttpRequest, HttpServer, Responder};
async fn index() -> impl Responder { "Connection successful" }
#[actix_web::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| {
App::new()
.service(web::resource("/").to(index))
})
.bind("127.0.0.1:8080")?
.run()
.await
}