Some checks failed
🚀 Continuous Integration / 🔧 Backend Tests (18.x) (push) Has been cancelled
🚀 Continuous Integration / 🔧 Backend Tests (20.x) (push) Has been cancelled
🚀 Continuous Integration / 🎨 Frontend Tests (18.x) (push) Has been cancelled
🚀 Continuous Integration / 🎨 Frontend Tests (20.x) (push) Has been cancelled
🚀 Continuous Integration / 🔍 Code Quality (push) Has been cancelled
🚀 Continuous Integration / 🔒 Security Checks (push) Has been cancelled
🚀 Continuous Integration / 🎨 Theme Tests (push) Has been cancelled
🚀 Continuous Integration / ♿ Accessibility Tests (push) Has been cancelled
🚀 Continuous Integration / 📱 Cross-Browser Tests (push) Has been cancelled
🚀 Continuous Integration / 🏗️ Build Tests (push) Has been cancelled
🚀 Continuous Integration / 📊 Performance Tests (push) Has been cancelled
🚀 Continuous Integration / 🎯 Integration Tests (push) Has been cancelled
🚀 Continuous Integration / ✅ All Tests Passed (push) Has been cancelled
2.8 KiB
2.8 KiB
🔥 Firebase Setup - Schnellstart
1. Firebase Projekt erstellen (5 Minuten)
Schritt 1: Firebase Console
- Gehe zu Firebase Console
- Klicke "Projekt hinzufügen"
- Projektname:
todo-kids-app(oder dein Wunschname) - Google Analytics: Deaktivieren (für einfacheren Start)
- "Projekt erstellen" klicken
Schritt 2: Authentication aktivieren
- Im Firebase-Projekt: Authentication → "Loslegen"
- Sign-in method Tab
- E-Mail/Passwort aktivieren
- Speichern
Schritt 3: Firestore Database erstellen
- Firestore Database → "Datenbank erstellen"
- Im Testmodus starten wählen
- Standort: europe-west3 (Deutschland)
- Fertig
Schritt 4: Web-App registrieren
- Projektübersicht → Web-App hinzufügen
</> - App-Name:
ToDo Kids Web - App registrieren
- Konfiguration kopieren (wichtig!)
2. Lokale Konfiguration (2 Minuten)
Firebase-Konfiguration einfügen
Öffne client/.env und ersetze die Platzhalter:
REACT_APP_FIREBASE_API_KEY=AIzaSyC...
REACT_APP_FIREBASE_AUTH_DOMAIN=todo-kids-app.firebaseapp.com
REACT_APP_FIREBASE_PROJECT_ID=todo-kids-app
REACT_APP_FIREBASE_STORAGE_BUCKET=todo-kids-app.appspot.com
REACT_APP_FIREBASE_MESSAGING_SENDER_ID=123456789
REACT_APP_FIREBASE_APP_ID=1:123456789:web:abc123
Wichtig: Verwende deine echten Werte aus der Firebase Console!
3. App starten
cd client
npm start
4. Testen
-
Registrierung testen:
- Gehe zu
/register - Erstelle einen Account
- Sollte funktionieren! ✅
- Gehe zu
-
Login testen:
- Gehe zu
/login - Melde dich an
- Dashboard sollte laden ✅
- Gehe zu
🚨 Häufige Probleme
Problem: "Firebase: Error (auth/configuration-not-found)"
Lösung: Überprüfe deine .env Datei - alle Werte müssen korrekt sein
Problem: "Firebase: Error (auth/api-key-not-valid)"
Lösung: API Key in .env ist falsch - kopiere ihn nochmal aus Firebase Console
Problem: "Firestore: Missing or insufficient permissions"
Lösung:
- Firebase Console → Firestore Database → Rules
- Ändere zu:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth != null;
}
}
}
- Veröffentlichen klicken
🎉 Fertig!
Deine App läuft jetzt mit Firebase!
Vorteile:
- ✅ Kein lokaler Server nötig
- ✅ Automatische Backups
- ✅ Skaliert automatisch
- ✅ Professionelle Authentication
- ✅ Kostenlos für kleine Apps
📱 Nächste Schritte
- Sicherheitsregeln verfeinern (später)
- Offline-Support aktivieren (automatisch)
- Push-Benachrichtigungen (optional)
- Analytics hinzufügen (optional)
Viel Spaß mit deiner Firebase-App! 🚀