Skip to content

Commit a38cfba

Browse files
committed
Initial release
1 parent 320d9df commit a38cfba

1,894 files changed

Lines changed: 240772 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,54 @@
11
# realnode.io
2-
Node.js wrapper to access your traditional MySql Database at real time, sync your data between multiple users at real time, no need of refresh, no need of AJAX.( good for web based real time projects).
2+
Want to develop real-time web project to boost your users' productivity? use <b>realnode.io</b> A Node.js wrapper to access your traditional MySql Database at real time, sync your data between multiple users at real time, no need of refresh, no need of AJAX.( good for web based real time projects).
3+
4+
## Example Project
5+
![mediaio_realnode_record](https://user-images.githubusercontent.com/30389552/58378117-ab34a500-7fab-11e9-810e-03c90e6cade4.gif)
6+
7+
## Installing
8+
A step by step guide to use realnode.io>>><br/>
9+
<b>step 1: first you need to install all following node modules.</b><br/>
10+
->express<br/>
11+
->socket.io<br/>
12+
->mySql<br/>
13+
->http (if not installed)<br/>
14+
15+
<b>step 2: include server-app.js file in your project root directory. It will handle all the server - side processes.</b>
16+
17+
<b>step 3:include client-app.js file in public folder in your project.It will handle all the functions used to fetch the data and easily bound with UI.</b>
18+
19+
<b>step 4:Configure your mysql database connection using initMysql() function, port numbers, and request handlers in server-app.js</b>
20+
21+
## Documentation
22+
client-app.js contains 4 functions.<br/><br/>
23+
<b>1.fetchData(socket,data,callbackFunction)</b>:<br/>
24+
Used to fetch latest data from your database.<br/>
25+
<ul>
26+
<li>socket object used to emit the events.</li>
27+
<li>data is a JSON object with 2 required properties:<br/>
28+
1.selectQuery-> Select query to fetch latest data.<br/>
29+
2.isBroadcast-> Boolean value.<br/>
30+
-> set true = to broadcast the fetched data.(sends data to all connected users.)<br/>
31+
-> set false = to share the fetched data only with single user.(user who performed the action will receive the data, not others).<br/></li>
32+
<li>callbackFunction() specifies callBack Function called when fetchData() compeltes its job.</li>
33+
</ul>
34+
<b>2.boundInsert(socket,data,callBackFunction) </b>:
35+
To perform insert operation.<br/>
36+
<ul><li>data is a JSON object with 2 required properties.<br/>
37+
1.sqlQuery-> Your insert query.<br/>
38+
2.selectQuery-> Select query to fetch latest data.<br/>
39+
</li></ul>
40+
<b>3.boundUpdate(socket,data,callBackFunction) </b>:
41+
To perform update operation.<br/>
42+
<ul><li>data is a JSON object with 2 required properties.<br/>
43+
1.sqlQuery-> Your update query.<br/>
44+
2.selectQuery-> Select query to fetch latest data.<br/>
45+
</li></ul>
46+
<b>4.boundDelete(socket,data,callBackFunction) </b>:
47+
To perform delete operation.<br/>
48+
<ul><li>data is a JSON object with 2 required properties.<br/>
49+
1.sqlQuery-> Your delete query.<br/>
50+
2.selectQuery-> Select query to fetch latest data.<br/>
51+
</li></ul>
52+
<b>Note: for more details, checkout the sample project.</b><br/>
53+
<b>This is initial release of realnode.io, future updates will make it more efficient.</b>
54+

Sample-Project/realtime-socket/.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sample-Project/realtime-socket/.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sample-Project/realtime-socket/.idea/realtime-socket.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)