Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
api
 
 
 
 
 
 
 
 
 
 
 
 
web
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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