Skip to content

NandanSatheesh/URL-Shortener-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL-Shortener-Go

forthebadge forthebadge forthebadge
URL shortener in Go using Redis and go-chi.

Redis

Try Redis Enterprise free in the cloud here. Get upto 30 MB of free storage on their enterprise cloud. 😎

Instructions

After all the package setup done, run the main.go file.
The app will run on localhost:8080

Endpoints

POST - /
Request - Make sure to include http:// or https://

{
    "url":"https://www.google.com"
}

Response -

{
    "code": "Fek6nO0Zg",
    "url": "https://www.google.com",
    "created_at": 1572207289
}

GET - /{string} - Will take you the webiste for which the URL is already shortened.

Other Notes

The username and passwords for the Redis Cluster used in this project are shown for reference only and are disposed with care 🎉
There were a lot of projects running on my GoLand IDE. You may have to reconfigure few of the packages on your own. 😕

Contribute

Want to contribute? Great!

Releases

No releases published

Packages

No packages published

Languages