Processing and visualizing logs on the client

In the previous section, you learned how to push the server logs from the server to the client; now, we need to organize these logs on the client, and then process and display them.

Bootstrapping a template with AngularJS and Socket.IO

Let's create a HTML page for our client application; we need to load the JavaScript libraries (D3.js, AngularJS, Socket.IO, the CSS layout Bootstrap, and all application files). Due to the usage of Socket.IO on the server side, it can be referenced on the client side with the /socket.io/socket.io.js pseudo location; all other third-party libraries are loaded from the bower_components directory.

We create the index.html page in the root directory of the project, add all ...

Get Data Visualization with D3 and AngularJS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.