Join Joseph LeBlanc for an in-depth discussion in this video Creating a Joomla! chatroom back-end, part of Node.js First Look.
- View Offline
In the previous video, we added the front-end for our chat room in Joomla!…Now let's add the back-end code so Joomla!…users can talk to each other through the chat room.…First, make sure you have at least two users in Joomla!…I've added Joe and Tom both as users.…Next, we're going to work with the server.…I've copied the code from the exercise files, and it has a package.json file.…Several dependencies are listed, so let's install them.…
After the modules are installed open up the server.js.…In addition to the modules that we used in the original chat room, we're…also loading the Joomla!…module and the Cookie module, both of these modules are going to work together…to authenticate users in Joomla!…There are two options for configuring the Joomla! module.…You can either pass in the full path to the Joomla!…site, or you can pass in an object with the configuration values.…I'm going to find the path to the Joomla! site and pass it in here.…
The Joomla! module will automatically load your configuration.php file, run it and extract…
- Using the Socket.IO Node package to achieve "live" effects like Facebook notifications
- Scraping web sites using jQuery without a browser