Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.
/ godep.org Public archive

Packages for Go - unofficial experimental next generation godoc.org

License

Notifications You must be signed in to change notification settings

metalmatze/godep.org

Repository files navigation

This idea has been superseded by pkg.go.dev.


godep.org Build Status

Docker Pulls Go Report Card

This is an experiment for a next generation godoc.org.
What if we add a lot of features to it, that are missing in its current form.

This project tries to shed light on this topic.

Why not simply improve GoDoc?

The purpose of this project is going beyond what GoDoc is currently capable of. GoDoc uses Redis to store its data. This will not be sufficient for what we're planning to do. Thus, right now, we use Postgres as Database. Additionally we want to be able to experiment. If something works out really well, I'm sure we can work on getting the feature into GoDoc as well.

Development

Clone this repository:

git clone git@github.com:metalmatze/godep.git $GOPATH/src/github.com/metalmatze/godep.org

Start Postgres

docker run -d -e POSTGRES_PASSWORD=postgres -p 5432:5432 --name godep-postgres postgres:10

Now you can run database migrations with migrate which you need to install.

Run the migrations like from the root of this project:

migrate -database postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable -path migrations/ up

Build godep.org

Get all dependencies. We use golang/dep.
Fetch all dependencies with:

dep ensure -v -vendor-only

Build the binary using make:

make install

In case you have $GOPATH/bin in your $PATH you can now simply start the bot by running:

GITHUB_TOKEN=XXX godep.org

You obtain a token for GitHub here: github.com/settings/tokens.