Dream Weaver
Share your dreams and receive personal interpretations
Share Your Dream or Problem
Important: All submissions are reviewed manually. I typically respond within 1-2 days.
Your submission will be stored securely until I can provide a thoughtful interpretation.
Recent Interpretations
Loading interpretations...
Admin Panel (Admin Mode)
You are logged in as administrator. Use this panel to respond to submissions.
Loading submissions...
Admin Login
This section is protected. Enter your credentials to access the admin panel.
Note: Only the blog owner has access to this panel. Visitors will not see this login form.
Developer Mode - Firebase Setup
Set Up Firestore Database
In your Firebase project:
- Click on "Firestore Database" in the left menu
- Click "Create Database"
- Choose "Start in test mode"
- Select a location closest to your users
Set Up Authentication
In your Firebase project:
- Click on "Authentication" in the left menu
- Go to the "Sign-in method" tab
- Enable "Email/Password" provider
- Go to "Users" tab and add yourself as an admin user
Get Firebase Configuration
In your Firebase project:
- Click the gear icon next to "Project Overview"
- Select "Project settings"
- Scroll down to "Your apps" section
- Register a web app (if you haven't already)
- Copy the Firebase configuration object
const firebaseConfig = {
apiKey: "YOUR_API_KEY",
authDomain: "YOUR_AUTH_DOMAIN",
projectId: "YOUR_PROJECT_ID",
storageBucket: "YOUR_STORAGE_BUCKET",
messagingSenderId: "YOUR_MESSAGING_SENDER_ID",
appId: "YOUR_APP_ID"
};
Update Security Rules
Go to Firestore → Rules tab and paste these rules:
service cloud.firestore {
match /databases/{database}/documents {
match /submissions/{submission} {
allow read: if request.auth != null;
allow create: if true;
allow update: if request.auth != null;
}
match /interpretations/{interpretation} {
allow read: if true;
allow create: if request.auth != null;
}
}
}
Create Firestore Index
Important: You must create this index to fix "Error loading submissions"
- Go to Firestore → Indexes tab
- Click "Create Index"
- Set collection ID to "submissions"
- Add two fields:
- Field 1: "status" (Ascending)
- Field 2: "timestamp" (Descending)
- Click "Create"
Or click the link provided in the error message to create the index automatically.
Update Your Code
Replace the placeholder configuration in the code below with your actual Firebase configuration:
const firebaseConfig = {
apiKey: "AIzaSyDexampleapikey12345",
authDomain: "your-project-id.firebaseapp.com",
projectId: "your-project-id",
storageBucket: "your-project-id.appspot.com",
messagingSenderId: "1234567890",
appId: "1:1234567890:web:abc123def456"
};
Comments
Post a Comment