/health_check with integration test implemented

This commit is contained in:
Andre Heber
2024-01-27 16:53:22 +01:00
commit b6679e2436
6 changed files with 1850 additions and 0 deletions

9
src/main.rs Normal file
View File

@ -0,0 +1,9 @@
use std::net::TcpListener;
use zero2prod::run;
#[tokio::main]
async fn main() -> std::io::Result<()> {
let listener = TcpListener::bind("127.0.0.1:8000").expect("Failed to bind random port");
run(listener)?.await
}