⚠️ This lesson is retired and might contain outdated information.

Firebase Account and Database Set Up

Tom Chant
InstructorTom Chant
Share this video with your friends

Social Share Links

Send Tweet
Published 2 years ago
Updated 2 months ago

You will learn how to set up a Google Firebase account and create a project with the real-time database. Tom walks you through the step-by-step process, including signing up, creating a project with a specific name, and choosing whether to enable Google Analytics.

You will also be guided on how to select the nearest server location and whether to use locked mode or test mode for your database. The importance of the database URL is highlighted, and you are shown how to copy it and include it in your code. This detailed explanation ensures that you understand each step and can successfully set up Firebase for your web development project.

[00:00] we need a Google Firebase account. So head over to the homepage and actually the image on this slide is a link. Click on it and it's going to take you straight there. When you're there, click on get started and that is going to take you to a sign up page and once you've entered your details and set up your account,

[00:17] you'll end up on a page looking like this. Click create project and here we need to give the project a name. I'm going for knowitall-openai, but of course you can call yours whatever you want. And now it's going to ask us if we want Google Analytics and for this project I'm going to turn it off.

[00:36] Now hit create project and it will take a few moments to set things up and when it's ready you can just click continue. Now we've created our project, go over to build and then from the drop down menu select real-time database. Next click create database but if you're interested in finding out a little bit

[00:55] about the different types of database that Firebase offers then do click this link and that will give you a little bit more info. For this project we're using the real-time database which is the easier one to work with. So create database and then in the pop-up select the server that's nearest to you. I'm in the UK so my nearest is Belgium.

[01:15] Click next and it's going to offer us locked mode or test mode. I'm going for test mode and that does mean that anybody with my database reference will be able to view, edit or delete any of my data. Now that's fine for the purposes of this course. By the time this gets published I will have locked this down.

[01:33] I recommend starting in test mode. It's just a little bit easier to not have to deal with the security rules at the beginning. You can always read up on that later and make some changes to the security rules if necessary. And there we are. We have our database and the most important thing here is this URL.

[01:50] That is the URL we'll be using to communicate with our database. So let me just zoom in on that. There it is. I'm going to click here to copy it and then in our code I'm just going to create a little comment here and paste it in. And we'll use that in the next scrim when we start adding the Firebase setup

[02:08] to this code right here in index.js.

egghead
egghead
~ just now

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today