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

TODO - Add more installation instructions

Prerequisites

  • Node.js
  • CouchDB
  • NPM

Installation Instructions

  1. Clone source code from Github.
git clone https://github.com/bigcompany/safewallet.git
  1. Install NPM Dependencies
cd safewallet
[sudo] npm install
  1. Create Safewallet database
curl -X PUT localhost:5984/resource
  1. 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.

Examples:

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

When starting any process be sure to log all console output to a file.

node bin/frontend> log.txt 2>&1
Clone this wiki locally