Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
/ url-shortener Public archive

Url shortener ✂️ microservice with multi database(mongo and redis) and multi format(json and msgpack) support 📝

Notifications You must be signed in to change notification settings

mrwormhole/url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-shortener

Url shortener microservice with multi database(mongo and redis) and multi format(json and msgpack) support 🐳

To use this, run the command down below. Default selected database is redis for now. JSON and MSGPACK formats are supported as long as right content type is received.
$ git clone github.com/MrWormHole/url-shortener.git
$ docker-compose up -d
For mongodb, you need to add mongodb to docker-compose file and provide environment values(URL_DB: "mongo", MONGO_URL, MONGO_DB, MONGO_TIMEOUT)
POST /
request:
{
  "url" : "www.website.com/asdasdasdadasd"
}
response:
{
  "hash": "ASDXASD"
  "url" : "www.website.com/asdasdasdadasd"
  "created_at": 3241233443521
}
GET /:hash
  This will redirect you to saved url.

About

Url shortener ✂️ microservice with multi database(mongo and redis) and multi format(json and msgpack) support 📝

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages