10k-experts-platform

10000 Experts Development Guidelines

⚠️ CRITICAL: Before doing ANY work, read SESSION_START.md and CRITICAL_ARCHITECTURE.md in this directory.

Auto-generated from all feature plans. Last updated: 2025-10-25

Active Technologies

Backend Stack

Frontend Stack

External Services

Infrastructure

Project Structure

backend/
├── src/
│   ├── models/              # Prisma schema and generated types
│   ├── services/            # Business logic layer
│   ├── api/                 # Express route handlers
│   ├── lib/                 # Shared utilities
│   └── config/              # Configuration
├── tests/
│   ├── contract/            # OpenAPI contract tests
│   ├── integration/         # Integration tests
│   └── unit/                # Unit tests
└── prisma/
    └── migrations/          # Database migrations

frontend/
├── src/
│   ├── components/          # React components
│   ├── services/            # API clients
│   ├── hooks/               # React hooks
│   └── context/             # React context
└── tests/

specs/
└── [###-feature]/           # Feature-specific documentation
    ├── spec.md
    ├── plan.md
    ├── research.md
    ├── data-model.md
    ├── quickstart.md
    ├── contracts/
    └── tasks.md

Commands

# Development
npm run dev           # Start development server

# Testing
npm test              # Run all tests
npm run test:unit     # Run unit tests only
npm run test:integration  # Run integration tests only
npm run test:contract     # Run contract tests
npm run test:coverage     # Generate coverage report

# Quality
npm run lint          # Run linter
npm run format        # Format code with Prettier

# Database
npx prisma migrate dev    # Run database migrations
npx prisma db seed        # Seed database
npx prisma generate       # Generate Prisma Client

# Pre-Commit Verification (REQUIRED before every commit)
.\scripts\pre-commit-check.ps1   # Windows
./scripts/pre-commit-check.sh    # Linux/Mac

Commit Policy

⚠️ MANDATORY: Run pre-commit verification before EVERY commit to GitHub

See COMMIT_POLICY.md for complete details.

Quick Reference

  1. Make code changes
  2. Test locally
  3. Run: .\scripts\pre-commit-check.ps1
  4. Fix any errors if checks fail
  5. Re-run until ALL checks pass (12/12)
  6. Only then: git add .git commitgit push

Policy: 100% error-free GitHub repository at all times.

Code Style