adds hello world, adds architecture doc
This commit is contained in:
parent
87492e0e78
commit
cef67c7cc5
|
@ -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.
|
|
@ -0,0 +1,9 @@
|
||||||
|
[package]
|
||||||
|
name = "aural_isle"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
tokio = { version = "1.2", features = ["full"] }
|
||||||
|
warp = "0.3"
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue