Skip to content

solarcreature/GoURL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoURL

A fast URL shortener written in Go using Redis and Gin.

Installation

$ go get github.com/solarcreature/GoURL

How to Run

Required

-Redis

Run


  • $ redis-server

  • $ go run main.go

Requests

curl --request POST
--data '{ "long_url": "example-url", "user_id" : "example-userID" }'
http://localhost:9808/create-short-url

Response

{ "message": "short url created successfully", "short_url": "http://localhost:9808/example" }

About

A URL shortener written in Golang using Redis and Gin. SHA256 and base58 encoding was implemented for logical algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages