Skip to content

maxking/golinks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golinks

Golinks is a tiny url shortnet server that uses sqlite database. This is purely meant for my personal use and you are more than welcome to use it too.

Build

First, you need to setup all your dependencies to compile this program. This project uses dep for dependency management.

$ go get -u github.com/golang/dep

Now you can clone the repo and download all the dependencies.

$ git clone https://github.com/maxking/golinks
$ cd golinks
$ dep ensure
$ go build

Running

Just execute the binary to start the running server:

$ sudo PORT=80 ./golinks

Environment variable PORT can be used to customize the port we are listening to.

I also add an entry in /etc/hosts to point go to IP address of the machine running Golinks, so that you can use http://go/short in your browser to re-direct to the URL you want to point to.

About

URL shortner writtne in Golang.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages