This commit is contained in:
Basilosaurusrex
2025-12-29 22:28:43 +01:00
parent 7fb446c53a
commit 0e19df6895
73 changed files with 7907 additions and 32290 deletions

View File

@@ -2,60 +2,42 @@
React-basiertes Ticket-Management-System mit Appwrite Backend.
## Setup
## 🚀 Schnellstart
### 1. Dependencies installieren
```bash
npm install
```
### 2. Appwrite konfigurieren
### 2. Appwrite einrichten
Erstelle eine `.env` Datei basierend auf `.env.example`:
**Wichtig:** Für eine detaillierte Schritt-für-Schritt-Anleitung siehe [APPWRITE_SETUP.md](./APPWRITE_SETUP.md)
Kurzfassung:
1. Erstelle ein Appwrite-Projekt auf [cloud.appwrite.io](https://cloud.appwrite.io)
2. Erstelle eine `.env` Datei im Root-Verzeichnis:
```env
VITE_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1
VITE_APPWRITE_PROJECT_ID=your-project-id
VITE_APPWRITE_PROJECT_ID=deine-project-id-hier
VITE_APPWRITE_DATABASE_ID=woms-database
```
3. Folge der detaillierten Anleitung in `APPWRITE_SETUP.md` um die Datenbank-Struktur zu erstellen
### 3. Appwrite Database Schema
Erstelle folgende Collections in deiner Appwrite-Datenbank:
#### Collection: `workorders`
| Attribut | Typ | Required |
|----------|-----|----------|
| title | string (255) | ✓ |
| description | string (5000) | |
| status | string (50) | ✓ |
| priority | integer | ✓ |
| type | string (50) | |
| customerId | string (50) | |
| customerName | string (255) | |
| assignedTo | string (50) | |
| assignedName | string (255) | |
| response | string (50) | |
| createdAt | datetime | |
#### Collection: `customers`
| Attribut | Typ | Required |
|----------|-----|----------|
| name | string (255) | ✓ |
| email | string (255) | |
| phone | string (50) | |
#### Collection: `users`
| Attribut | Typ | Required |
|----------|-----|----------|
| name | string (255) | ✓ |
| email | string (255) | ✓ |
| role | string (50) | |
### 4. App starten
### 3. App starten
```bash
npm run dev
```
Die App läuft dann auf `http://localhost:5173`
## 📚 Dokumentation
- **[APPWRITE_SETUP.md](./APPWRITE_SETUP.md)** - Detaillierte Anleitung zur Appwrite-Einrichtung
- Schritt-für-Schritt Setup
- Datenbank-Schema
- Berechtigungen
- Fehlerbehebung
## Features
- Ticket-Erstellung und -Verwaltung