sudo apt-get -y install python-software-properties
sudo apt-get -y install python
sudo apt-get -y install g++
sudo apt-get -y install make
sudo apt-get -y install libpq-dev
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get -y update
sudo apt-get -y install nodejs
sudo apt-get -y install postgresql
sudo apt-get -y install postgresql-client
sudo -u postgres psql -U postgres -d postgres -c "alter user postgres with password 'password';"
sudo -u postgres createdb ripple_gateway
export DATABASE_URL=postgres://postgres:password@localhost:4000/ripple_gateway
git clone https://github.com/stevenzeiler/ripple-gateway-api.git
cd ripple-gateway-api
sudo npm install
sudo npm install -g pg
sudo npm install -g db-migrate
db-migrate up --config config/database.json --migrations-dir db/migrations
bin/gateway init
bin/gateway start

sudo apt-get -y install python-software-properties
sudo apt-get -y install python
sudo apt-get -y install g++
sudo apt-get -y install make
sudo apt-get -y install libpq-dev
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get -y update
sudo apt-get -y install nodejs
sudo apt-get -y install postgresql
sudo apt-get -y install postgresql-client
sudo -u postgres psql -U postgres -d postgres -c "alter user postgres with password 'password';"
sudo -u postgres createdb ripple_gateway
export DATABASE_URL=postgres://postgres:password@localhost:5432/ripple_gateway
git clone https://github.com/stevenzeiler/ripple-gateway-api.git
cd ripple-gateway-api
sudo npm install
sudo npm install -g pg
sudo npm install -g db-migrate
db-migrate up --config config/database.json --migrations-dir db/migrations
bin/gateway init
bin/gateway start

Fix DATABASE_URL to use default pg port 5432
Fix DATABASE_URL to use default pg port 5432