mjurl ("Mike and Jarrod's URL Shortening Service") is a simple Go API that allows users to shorten URLs. Based on ByteByteGo's URL Shortener problem in System Design Interview Vol. 1
- Ensure you have Docker Engine installed.
- Run
make run
- Execute requests against
http://localhost:8080
to your heart's content
Request Body:
{
"url": "https://github.com"
}
Response:
200 OK
"<shortened URL hash>"
Response:
308 PERMANENT REDIRECT
Location: <longURL>
Distributed under the GNU-GPL License. See LICENSE
for more information.