One of the first things that we'll want to do is install jQuery for us to use as part of the JavaScript code we'll need to write for Presence. We'll be doing a good amount of DOM manipulation, and that's the kind of thing that is complicated to do without something like jQuery behind it. To install a new library, we'll need to open up a terminal to our project root, and then move into the assets/ directory. From there, run the following command:
$ npm install --save jquery
That will install jQuery for us and let us start using that as a part of our code. Next, we're going to hop over to assets/js/chat.js and start heavily modifying the code to start using and tracking Presence as part of our application.
First, we'll ...