Skip to content

jarekr/ccurlshortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ccurlshortener - a url shortening http service

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.

Building

cargo build

Running

cargo run

Go to http://localhost:8000 to see the web ui. Can also hit api endpoints like so:

add shortened urls for some websites

curl -i -X POST localhost:8000/shorten -d "https://google.com"
curl -i -X POST localhost:8000/shorten -d "https://lichess.org"

fetch some known shortened urls

curl -i -X GET "http://localhost:8000/e/wuTpmLjPu_Q="
curl -i -X GET "http://localhost:8000/e/ES8ZhVeI1Hc="

About

a url shortening service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published