UNPKG

1.21 kBMarkdownView Raw
1Ripple WebRTC Socket Server
2=========
3
4This directory contains the code base for the Ripple WebRTC Socket Server, which is a separately packaged NodeJS project
5that runs alongside the Ripple UI (Org-Ripple-UI) and Ripple Java Middleware (Org-Ripple-Middleware).
6
7
8### Requirements
9
10To develop and run the application locally you must have the following installed:
11* NodeJS >= v6.2.0
12* A running version of the Ripple UI
13* A running version of the Ripple Middleware
14* Two users, both of whom are connected to separate networks, logged in as a patient and clinician
15
16
17### Installation
18
191. Open a shell and navigate to the socket-server directory
202. Run 'npm install'
212. Run 'node socket'
22
23
24### Optional Installation
25
261. Install pm2, which is a NodeJS daemon which can run the socket server in the background, by running 'npm install -g pm2'
272. Run the socket server in the background by running 'pm2 start pm2.json'
283. Save the pm2 daemon configuration by running 'pm2 save'
29
30### Configuration
31
32The database connection details (MySQL) located in the socket-server/lib/db.js file. Feel free to change these credentials
33according to your database configuration and schema.