mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 17:57:54 +01:00
* docs: regenerate API documentation from src/app/api (329 routes) The generator only recognised `export async function GET`, so every route exported as a guarded const (`export const GET = withAdmin(...)`) or a destructured re-export was missing: the doc listed 116 endpoints, many of them since renamed or removed, against 329 route files today. Teach it the other two export shapes and the withAuth/withAdmin guards, and regenerate both copies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * docs: archive dated audits, compliance trackers and migration proposals Moves point-in-time records into docs/archive/ (with a README saying they describe the day they were written): the 2026-01 dev-guide compliance plan, codebase audit, DRY/SSOT and Phase 1 fix logs, the 2026-02 overnight cross-project plan, the 2026-07-02 audit report, the 2026-07-06 Shopware migration plan and system migration strategy, and CODE_AUDIT.md. CODE_AUDIT.md was listed in .claude/CLAUDE.md, .gemini/GEMINI.md and docs/README.md as the current list of issues to fix while its own banner called it a historical snapshot; those entries now point at docs/AUDIT_BACKLOG_2026-08.md, the list of findings still open. docs/README also stops linking api/, legacy/ and reference/, which do not exist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * docs: archive closed trackers and docs for removed code Into docs/archive/: ARCHITECTURE_DEBT (status CLOSED 2026-06-30), DATABASE_AUDIT (Neon, pre-cutover), UPGRADE_PLAN (2026-06-03 snapshot; Tailwind 4 and React 19 are done), MIGRATION_PLAN_QQQ5 and PROFILES_SSOT_PLAN (both executed: migrations 105 and 121/122), production-ready-checklist (Frauenfeld plan that never shipped), and three docs whose code is gone: PROJECT_PAGES_GUIDE (src/components/projects and the per-project pages, now one [slug] route), RevampCopilot (no src/features/chatbot) and projects/upcycling (the /projects/upcycling pages and businessPlan messages are no longer in the tree). Inbound references follow the move, including three code comments. SHARED_CONTEXT and COMMANDS stop describing the upcycling mini-site as live; COMMANDS drops db:migrate-users, which is not a script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * docs: correct live docs against the tree - BLOG_SYSTEM: rewritten from the code. There is no TinaCMS and no content/submissions; posts merge content/posts/*.md with blog_posts, and submissions are blog_submissions rows reviewed by staff. - installation guide: rewritten. There is no cms-api, no docker-compose.dev.yml and no default admin password; setup is services:up, db:migrate, setup-admins, dev. - RELIABILITY: migration 005b (not 005), no ENABLE_CMS gate, prod facts. - RESPONSIVE_DESIGN_SYSTEM: ResponsiveSection/Hero/Heading were removed; document Section, PageHero and Heading instead. - DEAD_CODE: the /api/repairers and /api/it-hilfe/helpers proxies and the routes.helpers alias are deleted, not 410; fix a stale line range. - DEV_GUIDE, AGENTS, claude/cursor/gemini guides, .cursorrules: DEVELOPMENT_GUIDELINES.md never existed here; protected files are in .claude/CLAUDE.md. src/config/site.ts -> org.ts/urls.ts; Next.js 16. - src/middleware.ts -> src/proxy.ts; components/ui/Button.tsx -> src/components/ui/button.tsx; reference page paths. - docs-paths baseline 68 -> 6, as the check asks when the count falls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * docs: fix dead links in package and example READMEs ai-native-cms-core linked a Next.js plugin, a CLI and docs/quick-start.md that do not exist in this repo; ai-native-cms-react has no README; the saldo README pointed at the repo root instead of the implementation in src/lib/team/saldo.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD --------- Co-authored-by: Claude <noreply@anthropic.com>
2.3 KiB
2.3 KiB
Installation Guide
This guide sets up the evig development environment on your local machine.
The short version is in the root README.md ("Quick Start"); every script is in
COMMANDS.md.
Prerequisites
- Node.js 22.13+ (CI and deploy run Node 24) - Download
- pnpm (version pinned in
package.json→packageManager) - Docker — runs the local Postgres, Meilisearch and Listmonk
- Git
There is one app: the Next.js project at the repository root. There is no separate API server.
Setup
1. Clone and install
git clone https://github.com/bitbaum/evig.git
cd evig
pnpm install
2. Environment
cp .env.example .env.local
At minimum set DATABASE_URL and AUTH_SECRET (32+ characters). For the Docker
database:
DATABASE_URL=postgresql://postgres:postgres@localhost:5433/revampit_cms
DATABASE_URL is the single connection source: the app and auth share one pool.
.env.example lists every other variable (payments, email, search).
3. Database
pnpm run services:up # Docker: Postgres on :5433, Meilisearch, Listmonk
pnpm run db:migrate # apply scripts/db/migrations/*.sql
pnpm run setup-admins # create admin users
Never point a local .env.local at the production database, and never use
drizzle-kit push against a shared database (see .claude/CLAUDE.md).
4. Start
pnpm run dev # Next.js on http://localhost:3000
# or everything at once:
pnpm run d # services:up + transcription worker + dev
- Site: http://localhost:3000
- Admin: http://localhost:3000/admin
Verification
curl http://localhost:3000/api/health
pnpm run verify # format, lint, umlauts, typecheck, tests, build — what CI runs
Troubleshooting
Port already in use
lsof -i :3000
kill -9 <PID>
Database connection issues
docker compose ps db
psql "postgresql://postgres:postgres@localhost:5433/revampit_cms" -c 'select 1'
Module not found
rm -rf node_modules
pnpm install
Next steps
- Read the Development Guide
- Check the API Documentation
- Review the Contributing Guidelines
- Read SHARED_CONTEXT.md for the stack and file layout