General Storage using SuperNodes
Go to file
2023-05-19 01:54:02 +05:30
args Adding setup files 2022-11-29 04:41:11 +05:30
debug Adding checksum-db script 2022-12-24 22:42:48 +05:30
setup Update README 2022-12-25 22:57:14 +05:30
src remove stdop files 2023-05-19 01:52:59 +05:30
.gitignore Adding setup files 2022-11-29 04:41:11 +05:30
btcOperator.js btcOperator v1.1.2a: bug fix 2023-02-23 23:24:55 +05:30
compactIDB.js compactIDB v2.1.2 2023-05-10 01:50:46 +05:30
floBlockchainAPI.js floBlockchainAPI v2.5.6b: bug fix 2023-05-13 18:18:23 +05:30
floCloudAPI.js floCloudAPI v2.4.3a 2023-05-04 16:59:10 +05:30
floCrypto.js floBlockchainAPI v2.4.4 2023-03-20 19:44:52 +05:30
floDapps.js floDapps v2.4.0 2023-05-04 17:09:02 +05:30
floTokenAPI.js floTokenAPI v1.0.4a 2023-05-10 02:01:47 +05:30
index.html grammatical error fix 2023-03-23 18:48:46 +05:30
lib.js lib v1.4.2b: bug fix 2023-02-25 15:01:13 +05:30
LICENCE Create LICENCE 2023-02-24 02:12:46 +05:30
LICENSE Create LICENSE 2021-07-26 15:56:27 +05:30
package.json Adding checksum-db script 2022-12-24 22:42:48 +05:30
README.md Update README 2022-12-25 22:57:14 +05:30
start.js Minor changes 2021-07-29 20:34:29 +05:30

SuperNode Storage

Installation

Pre-requisite

  • Nodejs version >= 12.9 (--lts recommended)
  • MySQL Server version > 8.0

Download

Download the repository using git:

git clone https://github.com/ranchimall/SuperNodeStorage.git

Install

Install using npm:

cd SuperNodeStorage
npm install

Finish the configuration when prompted

Configuration

General Configuration

If not finished during installation, or to re-configure use:

npm run configure
  • port: Port of the server to run on
  • MySQL host: Host of the MySQL server (default: localhost)
  • Database name: Database in which the data should be stored (<database-name>) (default: supernode)
  • MySQL username: Username for MySQL (<sql-username>)
  • MySQL password: Password for MySQL (<sql-password>)

Recommended (optional) Create and use a MySQL user instead of root. Remember to give access to the database to the user.

Set/Reset Node key password

If not set during installation, or to reset password, use:

npm run reset-password
  • private key: Private key of the node
  • password: Password to set for the node (<password>)

Note: Private key of the node is encrypted using the <password>. Thus use a strong password.

More

For help or list of all commands, use

npm run help

Starting the Server

After successful installation and configuration using the above steps, SuperNodeStorage can be started using:

npm start -- -PASSWORD=<password>

For more information and detailed installation, check the wiki here.