diff --git a/LORAWEB_NEU/Cargo.toml b/LORAWEB_NEU/Cargo.toml new file mode 100644 index 0000000..51cef90 --- /dev/null +++ b/LORAWEB_NEU/Cargo.toml @@ -0,0 +1,3 @@ +[workspace] +members = ["backend/daemon", "backend/api"] +resolver = "2" diff --git a/LORAWEB_NEU/backend/api/Cargo.toml b/LORAWEB_NEU/backend/api/Cargo.toml new file mode 100644 index 0000000..a3792e2 --- /dev/null +++ b/LORAWEB_NEU/backend/api/Cargo.toml @@ -0,0 +1,22 @@ +[package] +name = "loraweb-api" +version = "0.1.0" +edition = "2024" + +[dependencies] +axum = "0.8" +tokio = { version = "1", features = ["full"] } +sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite"] } +serde = { version = "1", features = ["derive"] } +serde_json = "1" +reqwest = { version = "0.12", features = ["json"] } +jsonwebtoken = "9" +argon2 = "0.5" +totp-rs = { version = "5", features = ["gen_secret"] } +chrono = { version = "0.4", features = ["serde"] } +uuid = { version = "1", features = ["v4"] } +tracing = "0.1" +tracing-subscriber = { version = "0.3", features = ["env-filter"] } +tower-http = { version = "0.6", features = ["cors"] } +anyhow = "1" +rand = "0.8" diff --git a/LORAWEB_NEU/backend/api/src/main.rs b/LORAWEB_NEU/backend/api/src/main.rs new file mode 100644 index 0000000..65902d7 --- /dev/null +++ b/LORAWEB_NEU/backend/api/src/main.rs @@ -0,0 +1,7 @@ +#[tokio::main] +async fn main() { + tracing_subscriber::fmt() + .with_env_filter(tracing_subscriber::EnvFilter::from_default_env()) + .init(); + tracing::info!("loraweb-api starting..."); +} diff --git a/LORAWEB_NEU/backend/daemon/Cargo.toml b/LORAWEB_NEU/backend/daemon/Cargo.toml new file mode 100644 index 0000000..3151663 --- /dev/null +++ b/LORAWEB_NEU/backend/daemon/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "loraweb-daemon" +version = "0.1.0" +edition = "2024" + +[dependencies] +axum = "0.8" +tokio = { version = "1", features = ["full"] } +sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite"] } +serde = { version = "1", features = ["derive"] } +serde_json = "1" +config = "0.14" +reqwest = { version = "0.12", features = ["json"] } +chrono = { version = "0.4", features = ["serde"] } +uuid = { version = "1", features = ["v4"] } +anyhow = "1" +tracing = "0.1" +tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/LORAWEB_NEU/backend/daemon/src/main.rs b/LORAWEB_NEU/backend/daemon/src/main.rs new file mode 100644 index 0000000..4a1f7a0 --- /dev/null +++ b/LORAWEB_NEU/backend/daemon/src/main.rs @@ -0,0 +1,7 @@ +#[tokio::main] +async fn main() { + tracing_subscriber::fmt() + .with_env_filter(tracing_subscriber::EnvFilter::from_default_env()) + .init(); + tracing::info!("loraweb-daemon starting..."); +}