adds hello world, adds architecture doc
This commit is contained in:
7
ARCHITECTURE.md
Normal file
7
ARCHITECTURE.md
Normal file
@ -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.
|
9
Cargo.toml
Normal file
9
Cargo.toml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[package]
|
||||||
|
name = "aural_isle"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
tokio = { version = "1.2", features = ["full"] }
|
||||||
|
warp = "0.3"
|
||||||
|
|
11
src/main.rs
Normal file
11
src/main.rs
Normal file
@ -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;
|
||||||
|
}
|
Reference in New Issue
Block a user