/p/dream-interpretation

Dream Weaver - Secure Interpretation System

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...

Developer Mode - Firebase Setup

1

Create a Firebase Project

Go to the Firebase Console and create a new project.

2

Set Up Firestore Database

In your Firebase project:

  1. Click on "Firestore Database" in the left menu
  2. Click "Create Database"
  3. Choose "Start in test mode"
  4. Select a location closest to your users
3

Set Up Authentication

In your Firebase project:

  1. Click on "Authentication" in the left menu
  2. Go to the "Sign-in method" tab
  3. Enable "Email/Password" provider
  4. Go to "Users" tab and add yourself as an admin user
4

Get Firebase Configuration

In your Firebase project:

  1. Click the gear icon next to "Project Overview"
  2. Select "Project settings"
  3. Scroll down to "Your apps" section
  4. Register a web app (if you haven't already)
  5. Copy the Firebase configuration object
// Firebase configuration
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"
};
5

Update Security Rules

Go to Firestore → Rules tab and paste these rules:

rules_version = '2';
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;
    }
  }
}
6

Create Firestore Index

Important: You must create this index to fix "Error loading submissions"

  1. Go to Firestore → Indexes tab
  2. Click "Create Index"
  3. Set collection ID to "submissions"
  4. Add two fields:
    • Field 1: "status" (Ascending)
    • Field 2: "timestamp" (Descending)
  5. Click "Create"

Or click the link provided in the error message to create the index automatically.

7

Update Your Code

Replace the placeholder configuration in the code below with your actual Firebase configuration:

// Replace this with your Firebase config
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"
};
Notification message

Comments