This is a subbmission for https://codingchallenges.fyi/challenges/challenge-url-shortener
Still a work in progress, e.g. simple ui, no tests, probably many bugs via edge cases, etc.
cargo build
cargo run
Go to http://localhost:8000 to see the web ui. Can also hit api endpoints like so:
curl -i -X POST localhost:8000/shorten -d "https://google.com"
curl -i -X POST localhost:8000/shorten -d "https://lichess.org"
curl -i -X GET "http://localhost:8000/e/wuTpmLjPu_Q="
curl -i -X GET "http://localhost:8000/e/ES8ZhVeI1Hc="