managarten/apps-archived/uload/docs/SETUP_POCKETBASE_SERVER.md
Till-JS ee42b6cc76 feat: major update with network graphs, themes, todo extensions, and more
## New Features

### Network Graph Visualization (Contacts, Calendar, Todo)
- D3.js force simulation for physics-based layout
- Zoom & pan with mouse/touchpad
- Keyboard shortcuts: +/- zoom, 0 reset, Esc deselect, / search, F focus
- Filtering by tags, company/location/project, connection strength
- Shared components in @manacore/shared-ui

### Central Tags API (mana-core-auth)
- CRUD endpoints for tags
- Schema: tags table with userId, name, color, app
- Shared tag components in @manacore/shared-ui

### Custom Themes System
- Theme editor with live preview and color picker
- Community theme gallery
- Theme sharing (public, unlisted, private)
- Backend API in mana-core-auth

### Todo App Extensions
- Glass-pill design for task input and items
- Settings page with 20+ preferences
- Task edit modal with inline editing
- Statistics page with visualizations
- PWA support with offline capabilities
- Multiple kanban boards

### Contacts App Features
- Duplicate detection
- Photo upload
- Batch operations
- Enhanced favorites page with multiple view modes
- Alphabet view improvements
- Search modal

### Help System
- @manacore/shared-help-content
- @manacore/shared-help-ui
- @manacore/shared-help-types

### Other Features
- Themes page for all apps
- Referral system frontend
- CommandBar (global search)
- Skeleton loaders
- Settings page improvements

## Bug Fixes
- Network graph simulation initialization
- Database schema TEXT for user_id columns (Better Auth compatibility)
- Various styling fixes

## Documentation
- Daily report for 2025-12-10
- CI/CD deployment guide

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 02:37:46 +01:00

2.3 KiB

PocketBase direkt auf Server installieren

Warum?

  • Daten bleiben erhalten
  • Einfacher SSH-Zugang zum Admin Panel
  • Keine Docker-Komplexität
  • Bessere Performance

Installation auf Server (einmalig)

SSH auf Server:

ssh root@91.99.221.179

1. PocketBase installieren

# Verzeichnis erstellen
mkdir -p /opt/pocketbase
cd /opt/pocketbase

# PocketBase herunterladen
wget https://github.com/pocketbase/pocketbase/releases/download/v0.26.2/pocketbase_0.26.2_linux_amd64.zip
unzip pocketbase_0.26.2_linux_amd64.zip
rm pocketbase_0.26.2_linux_amd64.zip
chmod +x pocketbase

# Daten-Verzeichnis
mkdir -p /opt/pocketbase/pb_data

2. Systemd Service erstellen

cat > /etc/systemd/system/pocketbase.service << 'EOF'
[Unit]
Description=PocketBase
After=network.target

[Service]
Type=simple
User=root
WorkingDirectory=/opt/pocketbase
ExecStart=/opt/pocketbase/pocketbase serve --http=127.0.0.1:8090 --dir=/opt/pocketbase/pb_data
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
EOF

3. Service starten

systemctl daemon-reload
systemctl enable pocketbase
systemctl start pocketbase
systemctl status pocketbase

4. Admin erstellen

cd /opt/pocketbase
./pocketbase superuser create --dir=/opt/pocketbase/pb_data

App-Konfiguration anpassen

In .env.production:

PUBLIC_POCKETBASE_URL=https://ulo.ad/api
POCKETBASE_URL=http://127.0.0.1:8090

In Dockerfile - PocketBase ENTFERNEN:

# DIESE ZEILEN ENTFERNEN:
# RUN wget https://github.com/pocketbase/pocketbase/...
# ENTFERNEN: supervisor config für pocketbase

Nginx in Coolify:

location /api/ {
    proxy_pass http://127.0.0.1:8090/;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
}

Vorteile:

Daten bleiben IMMER erhalten Einfacher SSH-Zugang: ssh -L 8090:localhost:8090 root@server Backups einfacher: /opt/pocketbase/pb_data Unabhängig von Docker-Deployments Direkter Zugriff für Wartung

Backup (wichtig!)

# Backup erstellen
cd /opt/pocketbase
./pocketbase backup --dir=/opt/pocketbase/pb_data

# Oder ganzes Verzeichnis
tar -czf pocketbase-backup-$(date +%Y%m%d).tar.gz /opt/pocketbase/pb_data