Fireship · @fireship

100 Firebase Tips, Tricks, and Screw-ups

Uploaded October 14, 2019 · Length 24:31

100 Firebase Tips, Tricks, and Screw-ups

Summary

Fireship shares 100 Firebase tips, tricks, and mistakes to make app development easier.

  • firebase
  • firebase tips
  • firebase tricks
  • firebase mistakes
  • firebase development
  • firebase app development

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    welcome to my top 10 firebase tips

  2. 0:02

    welcome to my top 25 firebase tips nope

  3. 0:05

    welcome to my top 100 firebase tips I've

  4. 0:08

    been working with firebase for several

  5. 0:10

    years now I've made plenty of mistakes

  6. 0:11

    along the way but I've also uncovered

  7. 0:13

    some secrets that you may not know about

  8. 0:14

    so hopefully this video makes your

  9. 0:16

    experience with firebase 100 times

  10. 0:18

    easier if you're new here like and

  11. 0:19

    subscribe and if you're serious about

  12. 0:21

    building an app with firebase consider

  13. 0:22

    becoming a pro member at fire ship item

  14. 0:24

    you'll get access to full project

  15. 0:26

    courses and a free t-shirt if you sign

  16. 0:28

    up for life

  17. 0:29

    or you can get a free t-shirt by leaving

  18. 0:30

    the best firebase tip in the comments

  19. 0:32

    below the first thing you'll need is a

  20. 0:34

    firebase project if you're building a

  21. 0:36

    serious app create two fire based

  22. 0:37

    projects one for development and one for

  23. 0:39

    production this gives you a sandbox for

  24. 0:41

    testing and experimenting and you can

  25. 0:43

    keep your customer data pristine in the

  26. 0:45

    production project in your production

  27. 0:47

    project link Google Analytics firebase

  28. 0:49

    can automatically set up analytics for

  29. 0:51

    iOS Android and the web if you're

  30. 0:53

    working with a team head over to the

  31. 0:54

    Settings tab and then go to users and

  32. 0:56

    permissions assign rules based on the

  33. 0:58

    principle of least privilege so team

  34. 1:00

    members only have access to the

  35. 1:01

    resources that they actually need from

  36. 1:03

    their head over to the data privacy tab

  37. 1:05

    and update your contact information to

  38. 1:07

    ensure you're in compliance with gdpr

  39. 1:09

    now click the button to add a new app to

  40. 1:11

    your firebase project when you do that

  41. 1:13

    it will give you an object with a bunch

  42. 1:15

    of credentials don't worry these are

  43. 1:16

    perfectly safe in your front-end code as

  44. 1:18

    long as you set up security rules which

  45. 1:20

    we'll look at later upgrade your

  46. 1:21

    firebase plan to blaze its pay-as-you-go

  47. 1:23

    but you still get all the free stuff

  48. 1:24

    that you would on the spark tier but you

  49. 1:26

    still want to stay on top of costs so

  50. 1:28

    head over to the GCP console and set up

  51. 1:30

    a budget alert for your project and

  52. 1:32

    monitor your monthly usage from the

  53. 1:33

    reports panel this will tell you exactly

  54. 1:35

    which services are costing you the most

  55. 1:37

    money make sure to install the firebase

  56. 1:39

    command line tools globally on your

  57. 1:40

    system and also the Google Cloud SDK a

  58. 1:43

    firebase project is actually just a

  59. 1:45

    layer on top of a Google cloud platform

  60. 1:47

    project once you've done this you should

  61. 1:49

    have access to the firebase command and

  62. 1:51

    the g-cloud command on your local system

  63. 1:53

    so now that we have a project set up

  64. 1:55

    let's look at how we can actually deploy

  65. 1:56

    our code to this project if you're

  66. 1:58

    building an iOS or Android app use