Skip to content

Installation

Voraussetzungen

  • Node.js 20+
  • pnpm (empfohlen) oder npm
  • Cloudflare Account (für Production)

Backend Setup

cd MORELO_BACKEND

# Dependencies installieren
pnpm install

# D1 Datenbank erstellen
npx wrangler d1 create morelo-db

# Database ID in wrangler.toml eintragen
# Dann Migrationen ausführen
npx wrangler d1 migrations apply morelo-db --local

# Dev Server starten
pnpm dev

Frontend Setup

cd MORELO_FRONTEND

# Dependencies installieren
pnpm install

# Dev Server starten
pnpm dev

Umgebungsvariablen

Backend (.dev.vars)

# Cloudflare
CF_ACCOUNT_ID=your_account_id

# Auth
JWT_SECRET=your_secret_key

# External APIs
MS365_CLIENT_ID=
MS365_CLIENT_SECRET=
SALESFORCE_CLIENT_ID=
SALESFORCE_CLIENT_SECRET=

Frontend (.env)

VITE_API_URL=http://localhost:8788
VITE_APP_NAME="MORELO Dealer Suite"