2
In your project, go to Authentication → Sign-in method and enable Google.
3
Go to Firestore Database → Create database. Start in production mode, then set these security rules:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /cards/{userId} {
allow read: if true;
allow write: if request.auth != null
&& request.auth.uid == userId;
}
match /slugs/{slug} {
allow read: if true;
allow write: if request.auth != null;
}
}
}
4
Go to Project Settings → Your apps → Web app (add one if needed) and copy your Firebase config object.
5
Go to Authentication → Settings → Authorized domains and add the domain where you'll host this builder.
6
Open builder.html in a text editor, find the FIREBASE_CONFIG block at the top of the script, and replace the placeholder values with your real config. Reload — you're live.