An open API service indexing awesome lists of open source software.

https://github.com/codeadamca/firebase-realtime-database

A basic example of displaying data from a Firebase Realtime Database.
https://github.com/codeadamca/firebase-realtime-database

firebase javascript realtime-database

Last synced: 3 months ago
JSON representation

A basic example of displaying data from a Firebase Realtime Database.

Awesome Lists containing this project

README

        

# Introduction to Firebase and the Realtime Database

A super basic example of displaying data from a Firebase Realtime Database. Follow these steps to get the code up and running:

1. Go to the [Firebase Console](https://console.firebase.google.com/) and create a new project.

2. Select the prpject and create a new app using Firebase for the web.

3. Click on the Realtime Database and create a new database.

4. Create a new project using:

```sh
npm init -y
```

5. Then install Firebase:

```sh
npm i firebase
```

6. Create a folder called `src` and place the `index.js` and `index.html` file in the new `src` folder.

8. In the `index.js` file, change the Firebase credentials to your app. Your credentials can be found in the app settings.

9. Test out the code using:

```sh
npx serve src
```

***

## Repo Resources

* [Visual Studio Code](https://code.visualstudio.com/)
* [Firebase](https://console.firebase.google.com/)