Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.42 KB

install.md

File metadata and controls

51 lines (33 loc) · 1.42 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 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 libpg-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 postgresql
sudo apt-get -y install postgresql-client
sudo apt-get -y install git

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/stevenzeiler/ripple-gateway-api.git
cd ripple-gateway-api
sudo npm install
sudo npm install -g pg
sudo npm install -g db-migrate

migrate the database to create gateway tables

db-migrate up --config config/database.json --migrations-dir db/migrations

configure the initial gateway parameters

bin/gateway init

start the gateway rest api server

bin/gateway start