In this second part of the tutorial we will build the frontend of our chat application. The application will be built with AngularJS using the Loopback SDK and some other good modules we will see soon. The starting point of the app will be created with the Angular Yeoman generator so be sure to have this tool installed.
As announced some days ago in this tutorial we will see how to build a chat application using AngularJS as frontend and Loopback for backend. A demo can be found here. The communications from AngularJS to the backend will be made via REST API, meanwhile the real time messaging will be handled with Socket.io. The chat will be available only for registered users so we need to setup the authentication process in both AngularJS and in Loopback. A user, once logged in, can join an already created room or can create new rooms as he like.
Todays every web application have a fixed layout and a content changing in it. Meteor, and in particular it’s routing module Iron Router give you the possibility to create layout and render other template inside it.
In this article we are going to look some basics feature of the Router and it’s layout system plus a little example on how to switch layout programmatically.
Usually the Arduino Sketch is directly saved into the board and if you want to control it from outside you have to write a protocol yourself to give instruction to the microcontroller.
There is another way to make it possible, it’s called Firmata. Firmata is a general purpose protocol to control microcontroller from outside using a serial connection.
Think about an app where you want to notify events to the users… probably you want to make it in realtime…
Web socket and Socket.IO in particular make it possible. But Laravel from it side doesn’t have direct support for http socket, so we have to implement a little NodeJS Socket.IO server and make possible to push message to it from the Laravel backend.