Itay4 / health-check-rust

This project is the source repository for a blog post on building a custom health check endpoint into a rust microservice.

Home Page:https://tjmaynes.com/posts/adding-a-health-api-endpoint-to-your-rust-microservice/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Health Check Rust

This project is the source repository for a blog post on building a custom health check endpoint into a rust microservice.

Requirements

Usage

To install rust stable, run the following command:

rustup toolchain install stable

To install project dependencies, run the following command:

cargo install --path .

To run the project, run the following command:

DATABASE_URL=postgres://root:postgres@localhost:5432?sslmode=disable \
cargo run

To run PostgreSQL using Docker Compose, run the following command:

docker compose up

About

This project is the source repository for a blog post on building a custom health check endpoint into a rust microservice.

https://tjmaynes.com/posts/adding-a-health-api-endpoint-to-your-rust-microservice/

License:MIT License


Languages

Language:Rust 100.0%