In this chapter we are going to create from zero a Rust Axum API with a health checker
Create a new project and install dependencies
Â
Create a new project
Enter to your project directory and add needed crates
In your main.rs file add the following code
Create a route.rs file with your routes, this file will be used to create all endpoints
Create api_handler.rs file with function that returns info for specific routes. We are going to create health_checker function that returns StatusCode 202
Run with cargo run dev and make an http request to http://localhost:3000/health and you will get a 200 status code