This demo includes a real time chat application managed by a dashboard, with a few tools like graphs for plotting on real time, message box, socket communication, and more. For portability reasons, the back end (restapi) is made on a node server as well as the front end service. It uses an emulated database for showing purposes, all data is stored in JSON files.
- NodeJS
- Express
- AngularJS
- Jquery
- SocketIo
- Html5
- Css3
- Json
To be able to run this sample dashboard, the only prerequisite is to have installed node js on your device:
For any RPM based OS just run the following command on your terminal to accomplish the installation of Node JS.
$ yum install node
To verify that node was successfully installed on your system just run:
$ node --version
If everithing went good, the terminal should response something similar to this:
$ v0.10.42
Once you have node running on your system, the next step is to download or clone the sample app from the github repo:
Or you can just clone it into a local repository using git. Run the following command on your terminal once you have created the desired directory and you're located inside of it:
$ git clone https://github.com/vasilycrespo/demo_dashboard.git
Finally, once you have a fresh copy of the demo app on your local folder, go inside of it using cd command on terminal and then, located at the same level of server.js run the following command:
$ npm install
This will install all software & libraries required to make this project up and running. Once all the libraries have been downloaded and installed, you can run the app using this command:
$ node server.js
If everithing is ok you should get the following feedback on the terminal:
$ frontend on port: 8080
$ restAPI started on port: 3030
$ Socket io listening at port 3000
You can use any web browser located on your local system to acces the app using the following address
That should be all, now the server must be up and running!