Start Updating real time data

Updating real time data

Before moving on, let’s put the HTML for our authentication page in place so that we can see what we’ve got. Angular Material is great and makes for very nice UI design, but the HTML can tend to add up.

As ever, the code for this tutorial can be found on Git Hub.

Let’s start by installing what we’ll need for the app using Installing Angular Material will give us other packages as well, including the most recent version of Angular JS.

You’ll also need some kind of server to view and interact with the app. We’ll want a folder structure that gives us a clean way of breaking out the different areas of responsibility. We’ve injected the modules we need by specifying them in the array next to the module name and then setup some configuration for the app.

If you’ve spent any time with Angular JS then you’ll likely be familiar with Firebase—a realtime data store that makes it very easy to save and sync data across any platform.

To do so, see the section Adding Your Own Firebase Account at the end of the article. lets us clear the user input and redirect them to the main status page if their login was successful.

If the login was unsuccessful, we catch it and for now just log the error to the console. We’ll need to create another service to handle this which we will do in the next section.

It would be great to have the ability to store a username and any biographical info that might be of interest.