Kanketsu (簡潔: concise; brief; succinct; ), is a distributed short URL server designed for high availability
- Make sure that you have Docker installed
- Clone down this repository.
git clone https://github.com/farajist/kanketsu.git- Create environment file
.envbased on.env.example - In the project workding directory, run the docker-compose command
docker-compose up --build- The URL shortner service is now ready to serve requests:
curl --location 'localhost:4000/url/shorten' --header 'Content-Type: application/json' --data '{ "url": "http://www.example.com" }'curl --location 'localhost:4000/url/expand/3PKb'The system design as well as architectural decisions are detailed here.