A pastebin web application focus at CLI support (sprunge inspired)
Go CSS Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
conf
handler
static
storage
templ
templates
.gitignore
.go.yaml
LICENSE
Makefile
README.md
gobin.go

README.md

gobin

A pastebin web application focused at CLI support (sprunge inspired)

Installation

Install Required Packages

$ go get github.com/kinghrothgar/gobin github.com/bmizerany/pat github.com/grooveshark/golib/gslog bitbucket.org/kardianos/osext github.com/mediocregopher/flagconfig github.com/kinghrothgar/redis/pool github.com/mediocregopher/radix/redis github.com/kinghrothgar/pygments github.com/kinghrothgar/gobin

Install Redis

Check out https://redis.io/download

Install Pygments (Optional)

$ pip install pygments

Note: depending on your configuration, pygments may install at /usr/bin/pygmentize or /usr/local/bin/pygmentize

Configuration

$ go run gobin.go --example > gobin.conf

Running

Start redis

$ redis-server --port 6666

Run gobin

$ go run gobin.go --conf=gobin.conf

or without a conf file

$ go run gobin.go --storetype=redis --storeconf=0.0.0.0:6666 --domain=0.0.0.0 --pygmentizepath=/usr/bin/pygmentize --listen=0.0.0.0:3000 --htmltemplates=/home/vagrant/code/gobin/templates/htmlTemplates.tmpl --texttemplates=/home/vagrant/code/gobin/templates/textTemplates.tmpl --staticpath=/home/vagrant/code/gobin/static