Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.51 KB

install.md

File metadata and controls

54 lines (35 loc) · 1.51 KB

Ripple Gateway Installation Instructions

The following are for a clean build of Ubuntu 13.10. If you have any problems please create an issue.

Node.js and packages.

sudo apt-get -y install git
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

Configure Postgres

set the postgres password, create the database and set the environment

sudo -u postgres psql postgres
\password postgres
\q

sudo -u postgres createdb ripple_gateway

Gateway API Server

clone the project from github and install the package dependencies

git clone https://github.com/ripple/ripple-gateway
cd ripple-gateway

npm install -g pg

sudo npm install -g db-migrate
sudo npm install -g forever

npm install

migrate the database to create gateway tables

export DATABASE_URL=postgres://postgres:password@localhost:5432/ripple_gateway
cd node_modules/ripple-gateway-data-sequelize
db-migrate up
cd ../..

start the gateway rest api server. The executable is located at ripple-gateway/bin/gateway:

bin/gateway start