brevity icon indicating copy to clipboard operation
brevity copied to clipboard

😜 Another useless service for shortening links in Go

Brevity

Another useless service for shortening links :trollface:

Install

Kubernetes cluster

Locally

Clone the repository:

$ git clone https://github.com/mgrachev/brevity
$ cd brevity

Install dependencies:

$ go get github.com/rnubel/pgmgr
$ go get -u github.com/kardianos/govendor
$ govendor sync

Create a database and run migrations:

$ pgmgr db create
$ pgmgr db migrate

Run the HTTP-server:

$ PG_CONNECTION_URL=postgres://... go run cmd/brevity-http-server/brevity-http-server.go