Email Sorter Beta

Ich habe soweit automatisiert the Emails sortieren aber ich muss noch schauen was es fur bugs es gibt wenn die app online  ist deswegen wurde ich mit diesen Commit die website veroffentlichen obwohjl es sein konnte  das es noch nicht fertig ist und verkaufs bereit
This commit is contained in:
2026-01-22 19:32:12 +01:00
parent 95349af50b
commit abf761db07
596 changed files with 56405 additions and 51231 deletions

View File

@@ -1,25 +1,42 @@
# -----------------------------
# CONFIG
# -----------------------------
$env:APPWRITE_ENDPOINT = "https://appwrite.webklar.com/v1"
$env:APPWRITE_PROJECT_ID = "696533bd0003952a02d4"
$env:APPWRITE_API_KEY = "297b989f4f706df75aee7d768422021787228412c88d00d663a3dae462e09d74a8c18ae973f44c8693c1fc65c2cc0939e4887f44b08548234df464e9acaeee7392c1cf35711bc94b0aa33eec2d5dd3b0178acc3061a34dca13b23f5f94e0db4d0f80bc53fbb63f2ec3b2eb2372c1d5cfa17483e150cbfde8a7b82759334abb82"
# ═══════════════════════════════════════════════════════════════════════════
# EmailSorter - Appwrite Setup Script
# ═══════════════════════════════════════════════════════════════════════════
#
# ⚠️ WICHTIG: Diese Datei ist VERALTET!
#
# Verwende stattdessen:
# cd server
# npm run bootstrap:v2
#
# Oder setze die Umgebungsvariablen in server/.env und führe dann aus:
# cd server
# node bootstrap-v2.mjs
#
# ═══════════════════════════════════════════════════════════════════════════
# IDs
$env:DB_ID = "mail-sorter"
$env:DB_NAME = "Mail Sorter"
$env:TABLE_PRODUCTS = "products"
$env:TABLE_QUESTIONS = "questions"
$env:TABLE_SUBMISSIONS = "submissions"
$env:TABLE_ANSWERS = "answers"
$env:TABLE_ORDERS = "orders"
Write-Host "`n⚠️ WARNUNG: Diese Datei ist veraltet!" -ForegroundColor Yellow
Write-Host "`nBitte verwende stattdessen:" -ForegroundColor White
Write-Host " 1. Erstelle server/.env mit deinen Appwrite Credentials" -ForegroundColor Gray
Write-Host " 2. Führe aus: cd server && npm run bootstrap:v2" -ForegroundColor Gray
Write-Host "`nSiehe APPWRITE_SETUP.md für Details." -ForegroundColor Cyan
Write-Host "`n"
# Produkt
$env:PRODUCT_ID = "mail-sorter-product"
$env:PRODUCT_SLUG = "email-sorter"
$env:PRODUCT_TITLE = "E-Mail Sortierer"
$env:PRODUCT_PRICE_CENTS = "4900"
$env:PRODUCT_CURRENCY = "eur"
# -----------------------------
# CONFIG (NUR FALLS .env NICHT VORHANDEN)
# -----------------------------
# ⚠️ KEINE HARDCODED API KEYS MEHR!
# Lese aus server/.env oder setze als Umgebungsvariablen
if (-not (Test-Path ".\server\.env")) {
Write-Host "❌ Keine server/.env Datei gefunden!" -ForegroundColor Red
Write-Host "`nBitte erstelle server/.env mit:" -ForegroundColor Yellow
Write-Host " APPWRITE_ENDPOINT=https://appwrite.webklar.com/v1" -ForegroundColor Gray
Write-Host " APPWRITE_PROJECT_ID=deine_projekt_id" -ForegroundColor Gray
Write-Host " APPWRITE_API_KEY=dein_api_key" -ForegroundColor Gray
Write-Host " APPWRITE_DATABASE_ID=emailsorter" -ForegroundColor Gray
Write-Host "`nSiehe server/env.example für ein Template." -ForegroundColor Cyan
exit 1
}
# -----------------------------
# RUN
@@ -30,19 +47,24 @@ if (-not (Test-Path ".\server")) {
Set-Location ".\server"
# Node deps
# Prüfe ob package.json existiert
if (-not (Test-Path "package.json")) {
npm init -y | Out-Null
npm i node-appwrite | Out-Null
Write-Host "❌ server/package.json nicht gefunden!" -ForegroundColor Red
Write-Host "Bitte führe zuerst 'npm install' im server Ordner aus." -ForegroundColor Yellow
exit 1
}
Write-Host "Creating bootstrap script..."
Write-Host "`n=== EmailSorter Bootstrap ===" -ForegroundColor Cyan
Write-Host "Verwende bootstrap-v2.mjs (aktuelle Version)" -ForegroundColor Green
Write-Host ""
Write-Host "Running bootstrap script..."
node bootstrap-appwrite.mjs
# Verwende bootstrap-v2.mjs (aktuelle Version)
node bootstrap-v2.mjs
if ($LASTEXITCODE -eq 0) {
Write-Host "`nAll done. DB/Tables/Columns created and 13 questions seeded." -ForegroundColor Green
Write-Host "`n✅ Bootstrap erfolgreich abgeschlossen!" -ForegroundColor Green
Write-Host "`nDie Datenbank und alle Collections wurden erstellt." -ForegroundColor White
} else {
Write-Host "`nError occurred during setup." -ForegroundColor Red
Write-Host "`n❌ Fehler beim Bootstrap." -ForegroundColor Red
Write-Host "Prüfe die Fehlermeldungen oben." -ForegroundColor Yellow
}