A modern React Router v7 application with internationalization support, built with Panda CSS and deployed on Vercel. This RevOps consulting platform serves French and English markets with a content-driven architecture.
# Install dependencies
pnpm install
# Generate CSS styles (required after install)
pnpm prepare
# Start development server
pnpm dev- Getting Started - Complete setup and development guide
- Official Documentation - Comprehensive project documentation
- AGENTS.md - Primary AI entry point with role-based navigation and constraints
- CLAUDE.md - Quick reference for Claude Code
- Supports development, business analysis, architecture, design, and integration agents
- React Router v7 - Full-stack React framework with SSR
- Panda CSS - Type-safe CSS-in-JS with atomic CSS generation
- React i18next - French/English internationalization
- TypeScript - Type-safe development with automatic type generation
- Biome - Code formatting and linting
- Vercel - Edge deployment with intelligent caching
pnpm dev # Start development server (auto-detects content source)
pnpm dev:local # Development with local filesystem content
pnpm dev:github # Development with GitHub API content
pnpm build # Build for production
pnpm start # Start production server
pnpm check # Check code quality (Biome)
pnpm check:fix # Auto-fix formatting/linting
pnpm typecheck # Type checking with route type generation
pnpm prepare # Generate Panda CSS styles
pnpm test # Run tests with coverageβββ docs/ # π Official documentation
β βββ architecture/ # System design and patterns
β βββ development/ # Developer guides
β βββ api/ # API and data documentation
β βββ project/ # Business context
βββ app/ # βοΈ React Router v7 application
β βββ routes/ # File-based routing with i18n
β βββ components/ # React components (atomic design)
β βββ modules/ # Business logic and content management
β βββ localization/ # i18n configuration
βββ preset/ # π¨ Panda CSS design system
β βββ tokens/ # Design tokens (colors, typography, spacing)
β βββ recipes/ # Component style variants
β βββ patterns/ # Layout patterns
β βββ slot-recipes/ # Multi-part component recipes
βββ locales/ # π Translation files (fr/en)
βββ public/ # π Static assets and media
βββ @ocobo/styled-system/ # π€ Generated Panda CSS output
- French (default):
/ - English:
/en/ - Server-side language detection and rendering
- Translation files in
locales/fr/andlocales/en/
- Dual source: GitHub API (production) / Filesystem (development)
- Markdoc parsing with TypeScript validation
- Content types: Blog posts, client stories, legal pages
- Automatic content validation with Zod schemas
- Server-side rendering with React Router v7
- Edge caching via Vercel with stale-while-revalidate
- Code splitting by route for optimal loading
- Asset optimization with automatic image optimization
- Panda CSS for type-safe styling with zero runtime overhead
- Design tokens for consistent theming
- Component recipes for style variations
- Responsive design with mobile-first approach
Create .env.local for local development:
# Content source (locale for dev, github for prod)
CONTENT_SOURCE=locale
# GitHub API configuration (for content fetching)
GITHUB_ACCOUNT=your-account
GITHUB_REPO=your-content-repo
GITHUB_ACCESS_TOKEN=your-token
GITHUB_BRANCH=main
# Optional integrations
AGO_API_KEY=your-ago-key
AGO_BASEPATH=your-ago-basepath# Local development (recommended)
CONTENT_SOURCE=locale pnpm dev:local
# GitHub API development (production-like)
CONTENT_SOURCE=github pnpm dev:githubThe application is optimized for Vercel deployment with:
- Automatic builds on push to main branch
- Edge caching for GitHub content with configurable TTL
- Environment-based content source switching
- Branch deployments for feature testing
vercel deploy- Vercel Analytics for usage insights
- Speed Insights for Core Web Vitals
- Bundle analysis with
pnpm build:analyze
# Bypass cache during development/testing
http://localhost:3000/blog?refresh=1
# Clear build cache
rm -rf build .react-router node_modules/.cache- Local content: Store in
~/projects/ocobo-posts/ - GitHub content: Use branch-specific content with
GITHUB_BRANCH - Content validation: Automatic Zod schema validation
# Regenerate styles after token changes
pnpm prepare
# Use design tokens in components
import { css } from '@ocobo/styled-system/css';- Read the Getting Started Guide
- Follow code quality standards (Biome configuration)
- Maintain test coverage (80% threshold)
- Update documentation for significant changes
This application follows a component-based layered architecture with:
- Server-first state management via URL and React Router loaders
- Content-as-data approach with Markdown and GitHub integration
- Type-safe styling with Panda CSS and design tokens
- Edge-optimized deployment with intelligent caching
For detailed architectural information, see docs/architecture/overview.md.
Need help? Check the documentation or AGENTS.md for AI-assisted development guidance.