Skip to content

nickvellios/Golang-URL-Minifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang URL Minifier v0.0.2

Check it out at https://r8r.org

A URL minifier written in Go.

  • Enter long URL
  • Receive small URL
  • Magic?

You can also:

  • Use the API to integrate your apps

First Screenshot

Second Screenshot

Tech

Golang URL Minifier relies on open source projects to work properly:

  • pq - A pure Go postgres driver for Go's database/sql package
  • Twitter Bootstrap - For quick UI creation
  • jQuery - Because Stackoverflow said I had to?

And of course Golang URL Minifier itself is open source with a public repository on GitHub.

Installation

Golang URL Minifier requires pq to run.

$ go get github.com/lib/pq

API Usage

Limited to 10 requests per hour per IP address

Example Request (via POST only):

curl --request POST 'https://r8r.org/generate/' --data "url=http://www.golang.org"

Example JSON Response:

{
	"url": "https://r8r.org/dvHhd"
	"error": ""
}

Todos

  • Admin dashboard
  • User accounts to remove throttle
  • Traffic analytics (Update: stats now exists, lots of work to do here!)
  • ???
  • Profit!

License

Unlicense. For more information, please refer to http://unlicense.org/

Free Software, Hell Yeah!

About

URL shortener written in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages