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:
29
web/src/api/bands.ts
Normal file
29
web/src/api/bands.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { api } from "./client";
|
||||
|
||||
export interface Band {
|
||||
id: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
genre_tags: string[];
|
||||
nc_folder_path: string | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
memberships?: BandMembership[];
|
||||
}
|
||||
|
||||
export interface BandMembership {
|
||||
member: { id: string; email: string; display_name: string };
|
||||
role: string;
|
||||
instrument: string | null;
|
||||
joined_at: string;
|
||||
}
|
||||
|
||||
export const listBands = () => api.get<Band[]>("/bands");
|
||||
export const getBand = (bandId: string) => api.get<Band>(`/bands/${bandId}`);
|
||||
|
||||
export const createBand = (data: {
|
||||
name: string;
|
||||
slug: string;
|
||||
genre_tags?: string[];
|
||||
nc_base_path?: string;
|
||||
}) => api.post<Band>("/bands", data);
|
||||
Reference in New Issue
Block a user