You'll need to add a new project in Firebase console.
Open this url https://console.firebase.google.com/, you use your credentials to login.
Add the Realtime Database and change the rules as follow:
{
"rules": {
".read": "true",
".write": "auth != null"
}
}Click on Public button to publish the new rules.
Add the Hosting service to deploy your web app.
You'll need to creates a file named credentials.h to the arduino script root (/arduino-script), and add the following content:
#define WIFI_SSID <YOUR-WIFI-SSID>
#define WIFI_PASSWORD <YOUR-WIFI-PASSWORD>
#define FIREBASE_AUTH <YOUR-FIREBASE-AUTHENTICATION-CODE>
where:
<YOUR-WIFI-SSID>, it's the wifi SSID;<YOUR-WIFI-PASSWORD>, it's the wifi password;<YOUR-FIREBASE-AUTHENTICATION-CODE>, it's the Realtime Database authentication secret. To creates the Realtime Database authentication secret you move toFirebase console > Project settings > Service accounts > Database secretand click onAdd secret, you have to copy this secret code.
You can read the specific documentation here to correctly setup web app project.
Click here to see a realtime example.