amsterdatech / goshorty

A URL shortener in Go with Redis as the backend

Home Page:http://gos.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A URL shortener written in Go.

Lyrics by 50 Cent ;]

Go, shorty

It's your birthday

We gon' party like it's your birthday

We gon' sip Bacardi like it's your birthday

Requirements

Go, obviously :)

Some gorilla packages:

$ go get github.com/gorilla/mux

Redigo:

$ go get github.com/garyburd/redigo/redis

User agent parser:

$ go get github.com/mssola/user_agent

Go's implementation of Maxmind GeoIP API:

$ go get github.com/nranchev/go-libGeoIP

Download and extract MaxMind's GeoIP Country Database in binary format:

$ wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
$ gunzip GeoIP.dat.gz

Build & Run

$ go build
$ ./goshorty

About

A URL shortener in Go with Redis as the backend

http://gos.io


Languages

Language:Go 78.7%Language:HTML 10.3%Language:JavaScript 8.3%Language:CSS 2.8%