Simple http Fahrenheit/Celsius/Kelvin converter using actix-web.
Note
This is a toy project, not yet finished. It's not recommended to use it in production.
From terminal:
git clone https://github.com/benzlokzik/fahrenheit-celsius-converter/
cd fahrenheit-celsius-converter
cargo build
cargo run
Via Docker:
docker build -t fahrenheit-celsius-converter .
docker run -p 8080:8080 fahrenheit-celsius-converter
curl -X GET "http://localhost:8080/convert/f_to_c/100"
curl -X GET "http://localhost:8080/convert/c_to_f/100"
curl -X GET "http://localhost:8080/convert/f_to_k/100"
curl -X GET "http://localhost:8080/convert/k_to_f/100"
curl -X GET "http://localhost:8080/convert/c_to_k/100"
curl -X GET "http://localhost:8080/convert/k_to_c/100"