Skip to content
Marak edited this page Jun 23, 2014 · 5 revisions

Prerequisites

  • Node.js
  • CouchDB
  • NPM

Installation Instructions

Clone source code from Github

git clone https://github.com/bigcompany/safewallet.git

Install NPM Dependencies

cd safewallet
[sudo] npm install

Create Safewallet database

curl -X PUT localhost:5984/resource

Running the tests

It's important to verify the current installation of Safewallet is valid. Running the test suite will ensure the application is working properly.

npm test

Starting Services in Development

All service binaries are located in safewallet/bin. Each binary represents a diffirent service and can be started with the node command.

Example:

node bin/frontend

Starting Services in Production

When starting a service in production you'll want to use one of the startup scripts located in safewallet/scripts/.

These scripts will start a process monitor as well as output process logs to a useful location.

Example:

cd scripts
sh start-frontend.sh
sh start-deposits.sh bitcoin
sh start-monitor.sh