Initial commit: ANOUMA website with Payload CMS, WebRTC meetings, and booking system

- Next.js 16 App Router site with the ANOUMA design system
- Payload CMS (PostgreSQL) for offers, events, posts and page content
- WebRTC video-call system with custom signaling server
- SMTP email reminders and booking-request notifications
- Customer accounts, calendar-based availability, and booking workflow
This commit is contained in:
maro
2026-08-25 16:40:51 +02:00
commit 45261a0461
138 changed files with 23263 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { randomInt } from "node:crypto";
// Unambiguous alphabet (no 0/O/1/I/l) — easier to read aloud/type correctly.
const ALPHABET = "ABCDEFGHJKMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz23456789";
/**
* Cryptographically random meeting password, e.g. "K7mQ-42Px". Independent
* of the event's id/slug — never derive it from the meeting identifier.
*/
export function generateMeetingPassword(): string {
const chars = Array.from({ length: 8 }, () => ALPHABET[randomInt(ALPHABET.length)]);
return `${chars.slice(0, 4).join("")}-${chars.slice(4).join("")}`;
}