82 lines
2.3 KiB
Markdown
82 lines
2.3 KiB
Markdown
# Appwrite Platform-Konfiguration - WICHTIG!
|
|
|
|
Der Fehler "Project with the requested ID could not be found" kann auch auftreten, wenn die **Platform nicht konfiguriert** ist!
|
|
|
|
## Schritt 1: Platform in Appwrite konfigurieren
|
|
|
|
1. Gehe zu [https://cloud.appwrite.io](https://cloud.appwrite.io)
|
|
2. Öffne dein Projekt **woms**
|
|
3. Gehe zu **Settings** → **Platforms** (oder **Auth** → **Settings**)
|
|
4. Klicke auf **Add Platform**
|
|
5. Wähle **Web App**
|
|
6. Gib einen Namen ein (z.B. "WOMS Web")
|
|
7. **WICHTIG:** Füge die folgenden Hosts hinzu:
|
|
- `localhost` (für Development)
|
|
- `127.0.0.1` (für Development)
|
|
- Deine Produktions-Domain (falls vorhanden)
|
|
|
|
8. Klicke auf **Create**
|
|
|
|
## Schritt 2: Email/Password Auth aktivieren
|
|
|
|
1. Gehe zu **Auth** → **Providers** (oder **Settings** → **Auth**)
|
|
2. Suche nach **Email/Password**
|
|
3. Aktiviere es (grüner Schalter)
|
|
4. Stelle sicher, dass es **aktiviert** ist
|
|
|
|
## Schritt 3: Project ID nochmal überprüfen
|
|
|
|
1. Gehe zu **Settings** → **General**
|
|
2. Kopiere die **Project ID** erneut
|
|
3. Vergleiche sie mit deiner `.env` Datei
|
|
|
|
Die Project ID sollte so aussehen: `693d9f37000b35267f1b`
|
|
|
|
## Schritt 4: Dev-Server neu starten
|
|
|
|
```bash
|
|
# Stoppe den Server (Ctrl+C)
|
|
npm run dev
|
|
```
|
|
|
|
## Schritt 5: Browser-Konsole überprüfen
|
|
|
|
Nach dem Neustart solltest du in der Browser-Konsole sehen:
|
|
|
|
```
|
|
🔧 Appwrite Konfiguration:
|
|
Endpoint: https://cloud.appwrite.io/v1
|
|
Project ID: 693d9f37000b35267f1b
|
|
Database ID: 6943bf0e0003291f8c35
|
|
```
|
|
|
|
## Häufige Probleme
|
|
|
|
### Problem: "Project with the requested ID could not be found"
|
|
|
|
**Lösung:**
|
|
1. Überprüfe, ob die Platform konfiguriert ist (siehe Schritt 1)
|
|
2. Überprüfe, ob `localhost` als Host hinzugefügt wurde
|
|
3. Überprüfe die Project ID nochmal im Dashboard
|
|
|
|
### Problem: "createEmailPasswordSession is not a function"
|
|
|
|
**Lösung:**
|
|
- Ich habe den Code bereits aktualisiert zu `createEmailSession`
|
|
- Stelle sicher, dass der Dev-Server neu gestartet wurde
|
|
|
|
### Problem: "401 Unauthorized" oder "Invalid credentials"
|
|
|
|
**Lösung:**
|
|
1. Stelle sicher, dass Email/Password Auth aktiviert ist
|
|
2. Erstelle einen Benutzer im Appwrite Dashboard oder über die Registrierung
|
|
|
|
## Testen
|
|
|
|
1. Öffne die App: `http://localhost:5173`
|
|
2. Versuche dich zu registrieren oder einzuloggen
|
|
3. Schaue in die Browser-Konsole auf Fehlermeldungen
|
|
|
|
Viel Erfolg! 🚀
|
|
|