Skip to content

MikeTeddyOmondi/locci-url

Repository files navigation

Locci Url

  • A blazing fast url shortener

Technologies:

  • Framework: Axum
  • Database: Libsql

Start in dev mode with cargo-watch

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

Interacting w/ API

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

Benchmarks

Using the rewrk HTTP load benchmarker

rewrk -c 256 -d 60s -h http://localhost:5050/todos --pct

About

Blazing fast url shortener

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published