diff --git a/.gitignore b/.gitignore
index 0c0f42f..ef62eda 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
node_modules/
package-lock.json
config.json
-parameters.json
\ No newline at end of file
+param.json
\ No newline at end of file
diff --git a/gen-param.html b/gen-param.html
new file mode 100644
index 0000000..b7be0b8
--- /dev/null
+++ b/gen-param.html
@@ -0,0 +1,71 @@
+
+
+
+ Gen Param
+
+
+
+
+ Generate Parameters
+
+
This page will automatically generate param.json file
+
+
+
+
+
+
\ No newline at end of file
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..5d685b0
--- /dev/null
+++ b/package.json
@@ -0,0 +1,32 @@
+{
+ "name": "supernodestorage",
+ "version": "1.0.0",
+ "description": "Supernode Storage is a Cloud Storage program for FLO Dapps",
+ "main": "src/main.js",
+ "dependencies": {
+ "mysql": "^2.18.1",
+ "node-fetch": "^2.6.1",
+ "ws": "^7.5.0"
+ },
+ "devDependencies": {},
+ "scripts": {
+ "postinstall": "node post-install.js",
+ "start": "node launch.js"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/ranchimall/SuperNodeStorage.git"
+ },
+ "keywords": [
+ "FLO",
+ "supernode",
+ "cloud",
+ "storage"
+ ],
+ "author": "Sai Raj (https://github.com/sairajzero)",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/ranchimall/SuperNodeStorage/issues"
+ },
+ "homepage": "https://github.com/ranchimall/SuperNodeStorage#readme"
+}
diff --git a/post-install.js b/post-install.js
new file mode 100644
index 0000000..ad1abbc
--- /dev/null
+++ b/post-install.js
@@ -0,0 +1,11 @@
+let message =
+`SupernodeStorage is installed.
+
+To complete the setup:
+1. Open gen-param.html and Download param.json to this directory
+2. Copy config-sample.json to config.json and Edit the values
+
+To start the node, Run:
+npm start
+`;
+console.log(message)
\ No newline at end of file
diff --git a/src/client.js b/src/client.js
index cf9beed..2ff3d7f 100644
--- a/src/client.js
+++ b/src/client.js
@@ -128,7 +128,6 @@ function checkIfRequestSatisfy(request, data) {
}
module.exports = {
- setParameters,
checkIfRequestSatisfy,
processRequestFromUser,
processIncomingData,
diff --git a/src/intra.js b/src/intra.js
index e7a1b7f..66bea0f 100644
--- a/src/intra.js
+++ b/src/intra.js
@@ -686,7 +686,6 @@ dataMigration.intimateAllNodes = function() {
//-----EXPORTS-----
module.exports = {
processTaskFromSupernode,
- setBlockchainParameters,
forwardToNextNode,
dataMigration,
SUPERNODE_INDICATOR,
diff --git a/src/set_globals.js b/src/set_globals.js
index f18cf39..84ad29d 100644
--- a/src/set_globals.js
+++ b/src/set_globals.js
@@ -2,7 +2,7 @@
//fetch for node js (used in floBlockchainAPI.js)
global.fetch = require("node-fetch");
-//Set browser parameters from parameters.json
-const parameters = require('../parameters.json')
-for(let p in parameters)
- global[p] = parameters[p];
\ No newline at end of file
+//Set browser paramaters from param.json
+const param = require('../param.json')
+for(let p in param)
+ global[p] = param[p];
\ No newline at end of file