Step 1: Get Started with Firebase Console and Web Setup
- Sign into the Firebase console with your Google account.
- Click 'Create a project', enter a project name, accept terms, and optionally set up Google Analytics. Click 'Create project'.
- Click the Web icon (
</>) to register a web app, enter app nickname, and register.
- Copy the
firebaseConfig object.
Install Firebase SDK:
Initialize in your JS app:
import { initializeApp } from 'firebase/app';
const firebaseConfig = { /* your config */ };
const app = initializeApp(firebaseConfig);
This sets up your app to connect to Firebase services.