Initial commit: RehearsalHub POC
Full-stack self-hosted band rehearsal platform: Backend (FastAPI + SQLAlchemy 2.0 async): - Auth with JWT (register, login, /me, settings) - Band management with Nextcloud folder integration - Song management with audio version tracking - Nextcloud scan to auto-import audio files - Band membership with link-based invite system - Song comments - Audio analysis worker (BPM, key, loudness, waveform) - Nextcloud activity watcher for auto-import - WebSocket support for real-time annotation updates - Alembic migrations (0001–0003) - Repository pattern, Ruff + mypy configured Frontend (React 18 + Vite + TypeScript strict): - Login/register page with post-login redirect - Home page with band list and creation form - Band page with member panel, invite link, song list, NC scan - Song page with waveform player, annotations, comment thread - Settings page for per-user Nextcloud credentials - Invite acceptance page (/invite/:token) - ESLint v9 flat config + TypeScript strict mode Infrastructure: - Docker Compose: PostgreSQL, Redis, API, worker, watcher, nginx - nginx reverse proxy for static files + /api/ proxy - make check runs all linters before docker compose build Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
27
scripts/nc-setup.sh
Normal file
27
scripts/nc-setup.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
echo "→ Configuring Nextcloud via occ..."
|
||||
|
||||
NC="docker compose exec -T nextcloud php occ"
|
||||
|
||||
# Enable recommended apps
|
||||
$NC app:enable notify_push 2>/dev/null || echo " notify_push not available, skipping"
|
||||
$NC app:enable files_accesscontrol 2>/dev/null || echo " files_accesscontrol not available, skipping"
|
||||
|
||||
# Create service account for rehearsalhub
|
||||
$NC user:add \
|
||||
--display-name "RehearsalHub Service" \
|
||||
--password-from-env \
|
||||
rh_service \
|
||||
<<< "${NEXTCLOUD_ADMIN_PASSWORD:-change_me}" || echo " Service account may already exist"
|
||||
|
||||
# Set permissions
|
||||
$NC user:setting rh_service core lang en
|
||||
$NC config:system:set trusted_domains 1 --value="${DOMAIN:-localhost}"
|
||||
$NC config:system:set trusted_domains 2 --value="nc.${DOMAIN:-localhost}"
|
||||
|
||||
# Create base folder structure
|
||||
$NC files:scan --all
|
||||
|
||||
echo "✓ Nextcloud setup complete"
|
||||
Reference in New Issue
Block a user