Skip to content

Releases

FDRA

Choose a tag to compare

@pySatellite pySatellite released this 03 Nov 03:17

First
Deploy
RUST
API

image

API TEST

$ curl https://hello-actix.fly.dev
Hello world!%

$ curl https://hello-actix.fly.dev/hey
Hey there!%

$ curl https://hello-actix.fly.dev/healthcheck
Health Check Completed!%

$ curl -X POST https://hello-actix.fly.dev/echo -d "yaho"
yaho%

$ curl -X POST https://hello-actix.fly.dev/echo -d "{"name": "yaho", "echo": "Hurray"}"
{name: yaho, echo: Hurray}%

$ date
2023년 11월  3일 금요일 12시 36분 44초 KST

Deloy

$ fly deploy

Run

$ cargo run
   Compiling hello-actix v0.1.0 (/Users/m2/code/study/rust/hello-actix)
    Finished dev [unoptimized + debuginfo] target(s) in 1.76s
     Running `target/debug/hello-actix`
Rust Actix-web server started at 127.0.0.1:8080