mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 16:14:12 +00:00
Multi-Tenant Payload CMS for complex care solutions gmbh et al.
Add batch video statistics retrieval method that fetches view counts, like counts, and comment counts for up to 50 videos per request. Includes unit tests covering normal operation, empty input, missing statistics defaults, null API response, and error propagation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| .github/workflows | ||
| .vscode | ||
| backups | ||
| docs | ||
| prompts | ||
| scripts | ||
| src | ||
| temp-seed-media | ||
| tests | ||
| .env.example | ||
| .gitignore | ||
| .gitleaks.toml | ||
| .npmrc | ||
| .prettierrc | ||
| .prettierrc.json | ||
| .yarnrc | ||
| backup.sql | ||
| CLAUDE.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| drizzle.ci.config.ts | ||
| drizzle.production.config.ts | ||
| ecosystem.config.cjs | ||
| eslint.config.mjs | ||
| next.config.mjs | ||
| package.json | ||
| playwright.config.ts | ||
| pnpm-lock.yaml | ||
| README.md | ||
| test.env | ||
| tsconfig.json | ||
| vercel.json | ||
| vitest.config.mts | ||
| vitest.setup.ts | ||
Payload CMS Multi-Tenant
Multi-Tenant Headless CMS for 3 active websites under a single Payload CMS instance.
Tech Stack
- CMS: Payload CMS 3.76.1
- Framework: Next.js 16.2.0-canary.41
- Runtime: Node.js 22.x
- Database: PostgreSQL 17.6 (via PgBouncer)
- Cache: Redis 7.x (optional, with in-memory fallback)
- Package Manager: pnpm
Tenants
| Tenant | Slug | Domain |
|---|---|---|
| porwoll.de | porwoll | porwoll.de |
| Complex Care Solutions GmbH | c2s | complexcaresolutions.de |
| Gunshin | gunshin | gunshin.de |
Quick Start
Prerequisites
- Node.js 22.x
- pnpm
- PostgreSQL 17 (or PgBouncer connection)
- Redis (optional)
Setup
# Install dependencies
pnpm install
# Copy environment variables
cp .env.example .env
# Edit .env with your database credentials
# Run development server
pnpm dev
Open http://localhost:3000/admin to access the admin panel.
Commands
pnpm dev # Development server
pnpm build # Production build
pnpm payload migrate # Run migrations
pnpm payload migrate:create # Create migration
pnpm test # Run tests
pnpm lint # ESLint
pnpm typecheck # TypeScript check
Documentation
- CLAUDE.md - Full project documentation (collections, blocks, APIs, architecture)
- docs/ - Additional documentation (infrastructure, deployment, security)
Email Testing
Set EMAIL_DELIVERY_DISABLED=true to bypass SMTP calls during testing. This flag is automatically honored in NODE_ENV=test.