Fireship · @fireship

Firebase - Back to the Basics

Uploaded July 29, 2020 · Length 25:23

Firebase - Back to the Basics

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.

  1. 0:00

    Choosing the right tech stack for your product in a world of unlimited

  2. 0:03

    possibilities is extremely challenging. Let's imagine you have an idea for the

  3. 0:06

    next billion dollar to-do app. You may have a vision for how the front-end user

  4. 0:09

    experience will work, but behind the front-end you have a ton of technical

  5. 0:13

    decisions to make on the back-end. Like how do we authenticate users? Which

  6. 0:16

    database should we use? How do we run trusted code on a server? How do we handle

  7. 0:20

    security, analytics, and scale up as our user base grows? These decisions are hard

  8. 0:24

    to get right and just thinking about them takes up time, money, and energy that

  9. 0:28

    would be better spent focusing on the user experience.

  10. 0:31

    When it comes to minimizing decision fatigue, there's nothing quite like Firebase.

  11. 0:34

    It contains everything most apps will need to build and run a production app at scale.

  12. 0:39

    This is what we call a back-end as a service, where the idea is that you, the developer,

  13. 0:44

    write and maintain as little back-end code as possible.

  14. 0:47

    It costs about $0 per month to run until your app builds an active user base, and it's

  15. 0:51

    extremely developer-friendly.

  16. 0:52

    The tool that lets you use the whole bass without scaling, cutting, or gutting.

  17. 0:56

    It's just that simple.

  18. 0:58

    When writing code with Firebase, you'll find that the SDKs are extremely well documented

  19. 1:01

    and highly optimized to get features built quickly.

  20. 1:04

    But ultimately, everything is a trade-off.

  21. 1:06

    I've been using Firebase for five years, and there are certainly some drawbacks to

  22. 1:09

    the platform that we'll talk about as well.

  23. 1:11

    In today's beginner-friendly tutorial, you'll learn everything you need to know about Firebase.

  24. 1:15

    You'll learn how to deploy a full-stack web application to the cloud.

  25. 1:18

    The app will be able to authenticate users with their Google account, then allow that

  26. 1:22

    user to securely create data in the database.

  27. 1:25

    And any time that user's data changes, it will be automatically reflected in the UI

  28. 1:28

    in real time.

  29. 1:29

    We'll be using vanilla JavaScript for this tutorial, however most people using Firebase

  30. 1:33

    are using a front-end framework, like React, Angular, Flutter, and so on.

  31. 1:37

    I'll be releasing intro videos for those frameworks separately, so make sure to subscribe

  32. 1:41

    to catch those as well.

  33. 1:42

    Even if you're using one of those frameworks, I highly recommend going through this tutorial

  34. 1:45

    as well to get a full understanding of how Firebase works at the base level.

  35. 1:49

    With that being said, let's go ahead and jump right into things.

  36. 1:52

    The first thing you'll need is to have Node.js installed on your local system.

  37. 1:55

    You can see here that I've opened up VS Code to an empty directory.

  38. 1:59

    I'm entering the command node flag v to get the version of 10.21.