0.1.0 • Published 5 years ago

pleapps-collection-agent v0.1.0

Weekly downloads
2
License
AGPL-3.0
Repository
github
Last release
5 years ago

Plenteum App Services Blockchain Data Collection Agent (BDCA)

Master Build Status

Build Status Build status

Prerequisites

Foreword

We know that this documentation needs to be updated. We'll compile it as part of the full documentation as the project progresses.

Setup

1) Clone this repository to wherever you'd like the API to run:

git clone https://github.com/plenteum-app-services/collection-agent

2) Install the required Node.js modules

cd collection-agent && npm install

3) Use your favorite text editor to change the values as necessary in config.json

Note: Make sure you use a limited database user for security reasons

{
  "mysql": {
    "host": "localhost",
    "port": 3306,
    "username": "root",
    "password": "password",
    "database": "plenteum",
    "connectionLimit": 10
  },
  "node": {
    "host": "localhost",
    "port": 44016
  }
}

4) Load the database schema from schema.sql into your configured database.

5) Fire up the script

node index.js

6) Optionally, install PM2 or another process manager to keep the service running.

npm install -g pm2@latest
pm2 startup
pm2 start index.js --name blockchain-data-collection-agent
pm2 save

6) Wait to build your database cache (this is likely to take some time)

(c) 2018-2019 TurtlePay™ Development Team
(c) 2019 Plenteum Development Team