A simple URL shortener written in Clojure.
- Clojure: The primary programming language for this project.
- Reitit: Routing library for handling HTTP requests.
- Muuntaja: Handle encoding/decoding of HTTP request and response.
- Ring: A Clojure web applications library.
- Carmine: Redis client for Clojure, used for storing shortened URLs.
- org.clojure/data.codec: Used in base64 encoding for URL hashes.
- To shorten, send a POST request to
/shorten
with the long URL in the request body.
- Shorten a URL:
curl -X POST -d '{"url": "http://example.com"}' -H "Content-Type: application/json" http://localhost:3000/shorten
- Implement the front end using ClojureScript.