

On the Firebase console, you need to enable the types of authentication you want to include in your app. We’ll use this code in a moment so copy it and keep somewhere easily accessible. It asks you a few questions about the app like the name, platform (web or mobile) and provides you with some information code to add to your app. Let’s start with authentication which is a common need for applications that need to identify users and provide specialized services. Before we get into the code, here’s a look at the folder structure.įor this application, React was used to build the frontend but the concepts can be applied in other JavaScript frameworks. Our setup is ready so we can actually start writing some code. Once you’ve created a project, you would see a screen like so: firebase console Authenticating Users A Google account is needed to be able to use Firebase. Once that is done, head over to the Firebase website to create a project that we’ll be referring to throughout the tutorial. Npm is a node.js package manager that’s used to install Firebase CLI.
.png)
We’ll start by installing the firebase CLI with npm: npm install -g firebase-tools You can check out the finished app here:. To demonstrate this, we’ll be building a conference application that provides authentication, allows users to upload images to the gallery, and post reviews and updates with live feeds. Final Serverless appįirebase is a mobile and web development platform that helps you quickly develop high-quality apps and grow your business. This frees up valuable time and resources that can be focused on working on the actual business logic of your application. In the simplest terms, Serverless frameworks and architectures enable you to build and run web applications without thinking about managing servers. In this article, we’ll see how Firebase allows us to focus on our core business logic and exposes simple to integrate APIs we can use to communicate with the backend.
