CrazyEngineers
  • Hello,
    from past 1week i have been study nodejs, to develop a real-time Dashboard.
    Requirement is : When ever there is a change(update, insert,..etc) in the database, dashboard should display it to the client,
    i have been stuck in learning-learning, wanted to start the project, dont know where to start
    CEans help me?
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Manish Goyal

    MemberJan 28, 2014

    For node.js, you must have basic knowledge of Java Script, some server side language say PHP and deep knowledge of Ajax Concept

    I will try to explain you node.js in brief

    Say I have a chat application

    User1 : Enters something and press send,the message will be retrieved by some server side language say PHP, that will communicate this message to your node.js server, as soon as it will receive message, it will communicate it with your script; that a new message has been received.

    Now normal ajax request will be made that will fetch data from database and populate it in table where your chat application is showing messages

    You might have noticed the utility of node.js that it informs your script itself to do something instead of script checking continuously to perform udate

    Coming to your dashboard project, as you have mentioned that you want to show data on your dashboard on real time basis

    Follow these steps

    There will be 4 files roughly

    1: showdata.php (that will show data through ajax)

    2: crud.php (to perform crud operations)

    3: ajax.php (to fetch latest data)

    4: node.php (that will act as intermediator) START working on this at end

    First complete 1st 3 files then post them here, then we will start on last and final step.

    Also try to read some tutorials from internet, you will find a lot of help there

    Again I am saying, instead of reading them, try to implement them step by step from installation to a basic application to print "welcome message"

    Once this is done, then things will be damn easy for you.
    Are you sure? This action cannot be undone.
    Cancel
  • micheal john

    MemberJan 28, 2014

    @#-Link-Snipped-# thanks for your reply.

    cannot we develop only using node.js without php
    Are you sure? This action cannot be undone.
    Cancel
  • Manish Goyal

    MemberJan 28, 2014

    no in order to interact with database such as mysql you need php, other wise you can use mongo db that i guess (not sure) don't require any knowledge of PHP
    Are you sure? This action cannot be undone.
    Cancel
  • Manish Goyal

    MemberJan 31, 2014

    @#-Link-Snipped-# sorry ignore my previous reply, yes, you can implement it through just node.js no php and all 😀
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register