Badger is a simplified self hosted Gist alternative built with Go.
-
Create a PostgreSQL database for Badger like so:
createdb badger
. -
Retrieve Badger's dependencies
go get ./...
-
Install godotenv and gin like so.
$ go get github.com/codegangsta/gin $ go get github.com/joho/godotenv/cmd/godotenv
-
Copy
.env.example
to.env
and configure the environment variables as necessary. -
Install the dependencies for compiling assets with
npm install
. -
Start the default gulp task to compile assets with
gulp
. -
Start the application with
godotenv gin
, gin will automatically reload your code as you make changes.