- A blazing fast
url shortener
- Framework: Axum
- Database: Libsql
First install the binary
cargo install cargo-watch
Start the project
cargo watch -q -c -w ./src -x run
If you have just installed
just run-dev
GET - Healthcheck
curl \
--header "Content-Type: application/json" \
--request GET \
http://localhost:3000/health
POST - Create Short URL
curl \
--header "Content-Type: application/json" \
--request POST \
--data '{"url":"https://example.com"}' \
http://localhost:3000/shorten
Using the rewrk HTTP load benchmarker
rewrk -c 256 -d 60s -h http://localhost:5050/todos --pct