mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 12:01:10 +02:00
Move inactive projects out of active workspace: - bauntown (community website) - maerchenzauber (AI story generation) - memoro (voice memo app) - news (news aggregation) - nutriphi (nutrition tracking) - reader (reading app) - uload (URL shortener) - wisekeep (AI wisdom extraction) Update CLAUDE.md documentation: - Add presi to active projects - Document archived projects section - Update workspace configuration Archived apps can be re-activated by moving back to apps/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
4.8 KiB
4.8 KiB
PocketBase Collections - Manuelle Einrichtung
Da der Schema-Import nicht funktioniert (veraltetes Format), musst du die Collections manuell erstellen.
🎯 Admin Login
- Gehe zu: http://localhost:8090/_/
- Login mit:
- Email:
till.schneider@memoro.ai - Password:
p0ck3t-RAJ
- Email:
📦 Collections erstellen
1. Links Collection
Collections → New collection → Base collection
Name: links
Fields hinzufügen (+ New field):
| Field Name | Type | Required | Options |
|---|---|---|---|
short_code |
text | ✅ | Unique: ✅, Min: 3, Max: 50 |
original_url |
url | ✅ | - |
title |
text | ❌ | Max: 200 |
description |
text | ❌ | Max: 500 |
user_id |
relation | ❌ | Collection: users, Max select: 1, Cascade delete: ✅ |
is_active |
bool | ❌ | - |
password |
text | ❌ | - |
max_clicks |
number | ❌ | Min: 0 |
expires_at |
date | ❌ | - |
click_count |
number | ❌ | - |
tags |
json | ❌ | - |
API Rules:
- List/View rule: `` (leer = public)
- Create rule:
@request.auth.id != "" - Update rule:
@request.auth.id = user_id - Delete rule:
@request.auth.id = user_id
2. Clicks Collection
Collections → New collection → Base collection
Name: clicks
Fields:
| Field Name | Type | Required | Options |
|---|---|---|---|
link_id |
relation | ✅ | Collection: links, Max select: 1, Cascade delete: ✅ |
ip_hash |
text | ❌ | - |
user_agent |
text | ❌ | - |
referer |
text | ❌ | - |
browser |
text | ❌ | - |
device_type |
text | ❌ | - |
os |
text | ❌ | - |
country |
text | ❌ | - |
city |
text | ❌ | - |
clicked_at |
date | ❌ | - |
API Rules:
- List/View rule: `` (leer = public)
- Create rule: `` (leer = public)
- Update rule:
null(keine Updates erlaubt) - Delete rule:
@request.auth.id = link_id.user_id
3. Accounts Collection (Optional)
Collections → New collection → Base collection
Name: accounts
Fields:
| Field Name | Type | Required | Options |
|---|---|---|---|
name |
text | ✅ | - |
owner |
relation | ✅ | Collection: users, Max select: 1 |
members |
relation | ❌ | Collection: users, Multiple: ✅ |
isActive |
bool | ❌ | - |
planType |
select | ❌ | Values: free, team, enterprise |
settings |
json | ❌ | - |
✅ Nach dem Erstellen
-
Speichern nicht vergessen (Save button oben rechts)
-
Test-Daten laden:
node scripts/seed-local-db.js -
App testen:
npm run dev
🎉 Fertig!
Deine lokale PocketBase ist jetzt bereit mit:
- Admin Account ✅
- Collections ✅
- Test-Daten (nach Seed-Script)
📝 Test-URLs
Nach dem Seed-Script:
- http://localhost:5173/test1 - Normaler Link
- http://localhost:5173/test2 - Link mit Click-Limit
- http://localhost:5173/protected - Passwort:
secret123
🔍 Troubleshooting
"Collection not found" Fehler?
- Stelle sicher, dass alle Collections erstellt und gespeichert wurden
- Name muss exakt sein (case-sensitive)
"Invalid relation" Fehler?
- Erst Links Collection erstellen, dann Clicks
- Users Collection existiert bereits (Standard Auth)