General Storage using SuperNodes
Go to file
sairajzero 6dff51560a Node URL change and Trusted IDs
Update node URL
- Can now change URLs for nodes without disk migration
- `updateNodes` JSON object property for updating the URL of nodes

Trusted IDs
- Added TrustedIDs for apps
- TrustedIDs are added/removed by admin ID
- TrustedIDs have permission to edit the tag field

Other changes
- supernode configs are converted into strings when stored in DB. (parsed back when retrieving from DB)
- updated SubAdmin column type from VARCHAR(3500) to TEXT
2022-12-18 03:23:57 +05:30
args Adding setup files 2022-11-29 04:41:11 +05:30
setup Adding setup files 2022-11-29 04:41:11 +05:30
src Node URL change and Trusted IDs 2022-12-18 03:23:57 +05:30
.gitignore Adding setup files 2022-11-29 04:41:11 +05:30
LICENSE Create LICENSE 2021-07-26 15:56:27 +05:30
package.json Adding setup files 2022-11-29 04:41:11 +05:30
README.md Update README.md 2022-07-26 03:04:04 +05:30
start.js Minor changes 2021-07-29 20:34:29 +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

In args/ directory, Copy config-sample.json to config.json.

cp args/config-sample.json args/config.json

Edit the values in args/config.json 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 node
  • 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 (Optional)

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

Note: param.json is used for controlled random values used by SecureRandom in Cryptography. If this step is skipped, param-default.json will be used as default parameter

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.