Skip to content
Ilayaraja M edited this page Jun 13, 2017 · 1 revision

Welcome to the QLedger wiki!

  1. Install Golang
brew install golang
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
mkdir $HOME/go/src
  1. Install PostgreSQL
brew install postgres
export PGDATA=/usr/local/var/postgres/data/
export DATABASE_URL="postgres://localhost/ledgerdb?sslmode=disable"
export TEST_DATABASE_URL="postgres://localhost/ledgerdb_test?sslmode=disable"
createdb ledgerdb
createdb ledgerdb_test
  1. Clone the repo
mkdir -p $GOPATH/src/github.com/RealImage/QLedger
git clone git@github.com:RealImage/QLedger.git $GOPATH/src/github.com/RealImage/QLedger
  1. Run the server
cd $GOPATH/src/github.com/RealImage/QLedger
go run main.go
Clone this wiki locally