Commit Graph

113 Commits

Author SHA1 Message Date
sairajzero
25a342a2db Minor changes
- config.json and param.json moved to args/
- param-default.json will be used by default if param.json is not generated by the user
- Renamed launch.js to start.js
- Minor bug fixes
2021-07-29 20:34:29 +05:30
sairajzero
9001b21b07 bug fix 2021-07-29 16:40:55 +05:30
sairaj mote
3d3d2be6df Added RanchiMall logo 2021-07-26 16:46:18 +05:30
sairaj mote
cadea29b4e Updated style of gen-param 2021-07-26 16:29:22 +05:30
Sai Raj
732dcfce18
Create LICENSE 2021-07-26 15:56:27 +05:30
Sai Raj
cdb94126ac
Create README.md 2021-07-26 15:37:02 +05:30
sairajzero
6b69469477 Bug fixes
- Changed some console.log to console.debug (Also added few more).
- Fixed: DB.lastLogTime not returning correct value
- Fixed: MySQL disconnection bug. Now using Pool connect for persistent connection.
- Fixed: connectNode not connecting properly due to a typo.
- Fixed: RECONNECT_NEXT_NODE const value not added
- Fixed: reconnectNextNode not triggered when only one node was online and a node comes online.
- Fixed: orderBackup not storing the order properly when less or just sufficient nodes available.
- Added: orderBackup to requesting data when sync is required
- Fixed: typo in sendStoredData
- Added: logInterval of _prevNode, _nextNode and _list
2021-07-26 05:31:54 +05:30
sairajzero
87a578e37b Access-Control-Allow-Origin
Setting 'Access-Control-Allow-Origin'  to header of response to allow browsers to access response.
2021-07-24 03:00:18 +05:30
sairajzero
685a383c8e bug fix 2021-07-23 20:58:29 +00:00
sairajzero
a91df8a2b2 Bug fix
- Promisified the refresher invoke fn.
- Connect to next node upon 1st refresher resolve
2021-07-24 01:04:20 +05:30
sairajzero
e565658bb0 Bug Fix 2021-07-23 19:15:53 +00:00
sairajzero
a3d2452e4e Bug fix
- Fixed: bugs in processing GET method
- Restored sendToLiveRequests() that was deleted in between commits
2021-07-23 21:27:56 +05:30
sairajzero
70196b004d Bug fixes 2021-07-23 00:07:54 +00:00
sairajzero
dea8835245 bug fix
- Adding semicolons to end of statements to prevent potential bugs.
- Logged in ID and Database connection will be notified.
- Fixed: database.js - few functions not having return promise statement.
2021-07-23 03:06:00 +05:30
sairajzero
02d6bd0ca3 Adding install modules 2021-07-22 19:54:38 +05:30
Sai Raj
53fcbbc84d
Merge pull request #9 from sairajzero/dev-nodejs
nodejs conversion
2021-07-22 04:24:53 +05:30
sairajzero
66d0ef7db0 update gitignore 2021-07-22 03:55:02 +05:30
sairajzero
9850ae1439 Rename config.json to config-sample.json 2021-07-22 03:32:08 +05:30
sairajzero
98fef6832f Rename start.js to main.js 2021-07-22 03:02:33 +05:30
sairajzero
1d4f47cf4e Update launch modules 2021-07-22 02:21:23 +05:30
sairajzero
bb21b1c436 update supernode modules
- Auto Disk cleanup
- Data migration (node addition and node deletion)
- Some minor bugs and typo fixes
2021-07-22 01:50:20 +05:30
sairajzero
854e88dde3 Adding start-node process 2021-07-18 20:44:48 +05:30
sairajzero
433c395f8b update supernode modules 2021-07-18 16:43:30 +05:30
sairajzero
968e911b57 update supernode modules 2021-07-18 05:08:33 +05:30
sairajzero
71846daf8a Renaming files 2021-07-17 19:10:05 +05:30
sairajzero
cd16e8aa67 Fixes for 'Case: Less nodes available' 2021-07-17 05:16:58 +05:30
sairajzero
b0080c5e42 update modules 2021-07-17 04:34:50 +05:30
sairajzero
aa23c30287 update supernode modules 2021-07-16 20:01:45 +05:30
sairajzero
ac5a90ccd0 Create .gitignore 2021-07-16 19:58:52 +05:30
sairajzero
c1e56354b0 Adding SuperNode modules 2021-07-16 04:37:00 +05:30
sairajzero
1f5a9218dd Adding database.js and server.js 2021-07-05 03:23:34 +05:30
sairajzero
2183685b2d Adding std op files 2021-07-04 21:33:02 +05:30
sairajzero
f03119e746 Reset for changing to nodeJS 2021-07-04 21:27:00 +05:30
sairajzero
d475f6db6b bugfix: flosight 2021-06-05 13:25:14 +05:30
sairajzero
0386346486 bug fix: flosight 2021-06-05 13:22:05 +05:30
Sai Raj
037fc4b41b
Merge pull request #8 from sairajzero/master 2020-12-19 22:38:06 +05:30
sairajzero
6d3e28618c Use existing pubKey in EDIT feature 2020-12-19 22:33:34 +05:30
sairajzero
53c4092c78 Edit comment feature
Allow users to edit comment of the data sent by them.
- Only data sent with comment field starting with 'EDIT:' can be updated.
- new signature must be calculated based on the changed data (ie, existing other data content with updated comment)
2020-11-14 03:57:35 +05:30
Sai Raj
02cc976372
Merge pull request #2 from ranchimall/master 2020-10-15 01:57:01 +05:30
Sai Raj
e20380c75b
Changing the SNStorageID 2020-10-15 01:10:24 +05:30
Sai Raj
b4c404fc35
Merge pull request #7 from sairajzero/dev
Cloud Version Update (Major Changes)
2020-10-13 20:27:43 +05:30
sairajzero
f6c9e95dce Mark feature
Changes required for mark feature
2020-09-27 03:32:46 +05:30
sairajzero
0398de34fd Migration and bug fixes
Fixed: Migration feature issues
Fixed: minor bug from previous update
2020-09-25 02:49:11 +05:30
sairajzero
b4f3e83b3c log alignment
fixed logs not aligned propoerly
2020-09-19 17:28:19 +05:30
sairajzero
fd592da8ed Supernode Update
Changes:
- Changes for wss update
Added:
- Added time to data
- errorFeedback: (if on)Feedback if any error in processing data from users.
- live-request: When a new data is stored, sends it to all respective requestors of that floID.
- deleteRequest: Users will now be able to delete the data received by them from cloud. (Note: user must be the receiverID of the data; sign verification ll be done).
Improvements:
- Improved data processing from wss.
- Improved data-signature format (new format: "receiverID|time|application|type|message|comment").
- Time in data must be within the allowed delayDelta.
- Feedback vectorclock of stored data to the sender.
- Dedicated disk will now be applied to authorised apps instead of diskList (removed floGlobals.diskList)
	. Authorising apps will automatically create a new disk for the app and imports all data of the app from defaultDisk.
	. Unauthorising apps will automatically exports all data from app disk to defaultDisk and deletes the app disk. (Caution: Unauthorising an app will cause diskCleanUp to delete all data stored before deleteDelay).
- Improved autoDeleteStoredData to diskCleanUp. For defaultDisk: deletes all data before deleteDelay, For authorised apps deletes data before deleteDelay sent 'from non-subAdmins' and/or 'to non-admin'.
Bug fixes:
- Minor bug fixes
2020-09-17 17:45:20 +05:30
sairajzero
4a8e8bd241 Websocket Improvement
* Added gid and uid to websocket (mg_connection)
Note: gid = group ID, uid = unique ID.
* Replaced old ws msg processing functions with new ones
* System functions:
- sys_display: Displays in console/terminal
- sys_unicast: unicast message to respective ws
- sys_broadcast: broadcast message to all ws
* Supernode to Users:
- broadcast: Sends msg to all ws
- groupcast: Sends msg to ws of affilated group
- unicast: Sends msg to respective ws
*User to Supernode:
- forward: Forwards msg from user to supernode ws
2020-09-17 17:07:05 +05:30
sairajzero
4e58e7c9c2 Kbucket sub-module fix 2020-09-09 20:54:59 +05:30
sairajzero
0bdf806d36 update stdop and beautify 2020-09-07 21:27:34 +05:30
Sai Raj
366816a0c4
Merge pull request #6 from sairajzero/master 2020-09-02 03:08:44 +05:30
sairajzero
1e57f4f6ab Improvements and Bug fixes 2020-09-02 03:06:15 +05:30