Indeed this is when we use the
In this case, there is only one way to do it. And it’s by creating a named function. …
A few months back, I wanted to leverage my career as a software engineer and get to the next level.
When I mentioned that to a good friend of mine in the industry, he introduced me to Mateus Freira and said that he could mentor me.
Mateus told me we could work together on an example project for this project he was building: Nun DB.
In exchange, I would have an excellent project in my portfolio, and he would go with me through all the nuance involved, namely all the best practices and any other tips he could give me…
So what is the deal with the var, let and const keywords?
var declaration? I bet.
Let’s explore the differences and find out when to use each one of them.
For many years, this was the only option available for every program, tutorial or book…
Let’s take a closer look.
If you’re not an experienced programmer, it’s likely you already have an idea of what that means, but you’re probably not sure.
This is actually a very deep subject, so we’re only gonna brush over it.
A second meaning for scope is where we store and find a given variable.
So, basically we’re dealing with three questions:
Firebase Authentication is a service compatible with your Node.js app offered by Firebase, which is a BaaS maintained by Google.
Moreover, it’s a service that might help you save a lot of time when creating the authentication service of your Node.js app.
Firebase Authentication will save you much time in your future Node.js projects, thus it’s a very nice trade-off to give up a few hours learning how it works.
Namely, it practically does all the dirty work in the backgroung for you in a very straightfoward and simple manner. Your only mission is to use it properly.
Firebase is a BaaS, an acronym that stands for Backend as a Service, which is nothing more than a couple of online solutions to aliviate customer efforts of configuring and mantaining the backend for their application.
Specifically, Firebase is one of the most popular examples of a BaaS, and is currently owned by Google.
As a result, it provides a whole basket of products that can help you develop your application without wasting a lot of time and resources setting up and upkeeping your backend.
Amongst the services that Firebase provide are the following:
Many articles have been written around this topic: “Create a Login System with Node.js”, “Node.js Authentication”, etc.
Currently, the most popular option for implementing your own authentication system is Passport.js.
If you follow these tutorials or start reading library documentation I bet you’ll come to the same conclusion as I have. The fact is that authenticating users with Node.js might be very cumbersome and specially dangerous task.
You’ll need a database to store user credentials, a data model, and you’ll have to set up the whole authentication architecture. And even with the help of specialized Node.js …