From 60cc6cc9e0543155b5d043da99c2edb37e443d6d Mon Sep 17 00:00:00 2001 From: Sundog Date: Tue, 17 Oct 2023 16:13:55 -0400 Subject: [PATCH] adds hello world, adds architecture doc --- ARCHITECTURE.md | 7 +++++++ Cargo.toml | 9 +++++++++ src/main.rs | 11 +++++++++++ 3 files changed, 27 insertions(+) create mode 100644 ARCHITECTURE.md create mode 100644 Cargo.toml create mode 100644 src/main.rs diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md new file mode 100644 index 0000000..317c99b --- /dev/null +++ b/ARCHITECTURE.md @@ -0,0 +1,7 @@ +# Architecture Details + +This is a living document describing the architectural decisions made as part of the development of this project, along with any necessary context around the decisions made. + +## Base Architectural Decisions + +At the inception of the project, we decided to use Rust as our language of choice and Warp as our web framework. This decision was based on team skills, future capabilities, and current best practices for building web applications in Rust. \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..b1a25df --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "aural_isle" +version = "0.1.0" +edition = "2021" + +[dependencies] +tokio = { version = "1.2", features = ["full"] } +warp = "0.3" + diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..7f6bb1f --- /dev/null +++ b/src/main.rs @@ -0,0 +1,11 @@ +use warp::Filter; + +#[tokio::main] +async fn main() { + let hello = warp::get() + .map(|| format!("Hello world!")); + + warp::serve(hello) + .run(([127, 0, 0, 1], 5309)) + .await; +} \ No newline at end of file