-
Notifications
You must be signed in to change notification settings - Fork 15
Setup
Ilayaraja M edited this page Jun 13, 2017
·
1 revision
Welcome to the QLedger wiki!
- Install Golang
brew install golang
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
mkdir $HOME/go/src
- 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
- 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
- Run the server
cd $GOPATH/src/github.com/RealImage/QLedger
go run main.go