Cleopatchra downloads and stores GitHub state in a PostgreSQL database and powers a Golang server that renders JSON:API-spec data.
The project is written in Golang and Ruby. To start, you'll need to download the repository into your GOPATH
. If you don't know what that is, you can get started with Go here.
Golang
cd
into the root of the directory- Install dependent packages with
glide install
. If you don't have glide installed, you can install it here - Compile the program by running
go build
- Run the server with
./cleopatchra
- You'll need to setup a database and seed it with a small Ruby app before the app will fully function (see below)
Ruby
cd
into theseed-db
directory from root- Install PostgreSQL
- Set environment variables for
DEFAULT_POSTGRES_USER
andDEFAULT_POSTGRES_PASSWORD
to configure PostgreSQL access - Install Ruby version 2.4.1 with a tool such as RVM
- Install dependencies with
bundle install
- Seed the database for a given repository with
ruby run.rb seed --organization 'foo_org' --repo 'bar_repo'