Fireship · @fireship
Firebase - Back to the Basics
Uploaded July 29, 2020 · Length 25:23
Summary
This video teaches how to deploy a full-stack web application to the cloud using Firebase, including authentication and real-time database updates.
- firebase tutorial
- firebase deployment
- full-stack web application
- cloud infrastructure
- firebase authentication
- real-time database updates
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
Choosing the right tech stack for your product in a world of unlimited
- 0:03
possibilities is extremely challenging. Let's imagine you have an idea for the
- 0:06
next billion dollar to-do app. You may have a vision for how the front-end user
- 0:09
experience will work, but behind the front-end you have a ton of technical
- 0:13
decisions to make on the back-end. Like how do we authenticate users? Which
- 0:16
database should we use? How do we run trusted code on a server? How do we handle
- 0:20
security, analytics, and scale up as our user base grows? These decisions are hard
- 0:24
to get right and just thinking about them takes up time, money, and energy that
- 0:28
would be better spent focusing on the user experience.
- 0:31
When it comes to minimizing decision fatigue, there's nothing quite like Firebase.
- 0:34
It contains everything most apps will need to build and run a production app at scale.
- 0:39
This is what we call a back-end as a service, where the idea is that you, the developer,
- 0:44
write and maintain as little back-end code as possible.
- 0:47
It costs about $0 per month to run until your app builds an active user base, and it's
- 0:51
extremely developer-friendly.
- 0:52
The tool that lets you use the whole bass without scaling, cutting, or gutting.
- 0:56
It's just that simple.
- 0:58
When writing code with Firebase, you'll find that the SDKs are extremely well documented
- 1:01
and highly optimized to get features built quickly.
- 1:04
But ultimately, everything is a trade-off.
- 1:06
I've been using Firebase for five years, and there are certainly some drawbacks to
- 1:09
the platform that we'll talk about as well.
- 1:11
In today's beginner-friendly tutorial, you'll learn everything you need to know about Firebase.
- 1:15
You'll learn how to deploy a full-stack web application to the cloud.
- 1:18
The app will be able to authenticate users with their Google account, then allow that
- 1:22
user to securely create data in the database.
- 1:25
And any time that user's data changes, it will be automatically reflected in the UI
- 1:28
in real time.
- 1:29
We'll be using vanilla JavaScript for this tutorial, however most people using Firebase
- 1:33
are using a front-end framework, like React, Angular, Flutter, and so on.
- 1:37
I'll be releasing intro videos for those frameworks separately, so make sure to subscribe
- 1:41
to catch those as well.
- 1:42
Even if you're using one of those frameworks, I highly recommend going through this tutorial
- 1:45
as well to get a full understanding of how Firebase works at the base level.
- 1:49
With that being said, let's go ahead and jump right into things.
- 1:52
The first thing you'll need is to have Node.js installed on your local system.
- 1:55
You can see here that I've opened up VS Code to an empty directory.
- 1:59
I'm entering the command node flag v to get the version of 10.21.


