It contains API's for create, get operations for tiny urls
Docker enables developers to easily pack, ship, and run any application as a lightweight, portable, self-sufficient container, which can run virtually anywhere.
- Install docker
- docker-compose up
- Done!
docker login docker build -t deepak6446/tinyurl:latest . docker push deepak6446/tinyurl:latest .
kubernets deployment is available at Medium
-
create a tiny url
- Create a Tiny Url
{ "url":"https://docs.google.com/document/HYAuHGq5yQBxj3IVUehW-XfHgwEbR8W5nw/edit?usp=sharing" }
-
Get long url from shorturl.
- Returns long url created by user
-
Get count of short url created in specified time range.
- Returns count of number of urls created in date range