General Storage using SuperNodes
Go to file
2021-07-26 16:46:18 +05:30
src Bug fixes 2021-07-26 05:31:54 +05:30
.gitignore Adding install modules 2021-07-22 19:54:38 +05:30
config-sample.json Rename config.json to config-sample.json 2021-07-22 03:32:08 +05:30
gen-param.html Added RanchiMall logo 2021-07-26 16:46:18 +05:30
launch.js bug fix 2021-07-23 03:06:00 +05:30
LICENSE Create LICENSE 2021-07-26 15:56:27 +05:30
package.json Adding install modules 2021-07-22 19:54:38 +05:30
post-install.js bug fix 2021-07-23 03:06:00 +05:30
README.md Create README.md 2021-07-26 15:37:02 +05:30

SuperNode Storage

Installation

Pre-requisite

  • Nodejs version >= 12.9
  • MySQL Server

Download

Download the repository using git:

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

Install

Install using npm:

cd SuperNodeStorage
npm install

Configuration

General Configuration

Copy config-sample.json to config.json and Edit the values as required.

{
"privateKey": "<private-key>",
"port": "<port>",

"sql_user": "<MySQL-username>",
"sql_pwd": "<MySQL-password>",
"sql_db": "<database-name>",
"sql_host": "<sql-host>"
}
  • private-key: Private key of the cloud
  • port: Port of the server to run on
  • MySQL-username: Username for MySQL
  • MySQL-password: Password for MySQL
  • database-name: Database in which the data should be stored (default: supernode)
  • sql-host: Host of the MySQL server (default: localhost).

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

Parameter Generation

Open gen-param.html in a browser and download param.json to SuperNodeStorage directory.

Note: param.json is used for controlled random values used by SecureRandom in Cryptography

Starting the Server

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

npm start

For more detailed Installation, check the wiki here.