# Examples This directory contains example projects that are rendered from rdev's skeleton templates. ## full-monorepo A fully rendered monorepo skeleton with all component types: | Component | Type | Purpose | |-----------|------|---------| | `services/example-api` | service | Go REST API | | `workers/example-worker` | worker | Go background worker | | `apps/example-astro` | app-astro | Astro landing page | | `apps/example-react` | app-react | React SPA | | `apps/example-nextjs` | app-nextjs | Next.js dashboard | | `cli/example-cli` | cli | Go CLI tool | ### Purpose 1. **Template testing**: Ensures templates render correctly and compile 2. **IDE debugging**: Step through generated code with full syntax highlighting 3. **Documentation**: Shows what rendered projects look like ### Regenerating To regenerate after template changes: ```bash ./scripts/verify-skeleton.sh --update ``` ### Verification To verify templates are in sync: ```bash ./scripts/verify-skeleton.sh # Full verification (Go + TypeScript) ./scripts/verify-skeleton.sh --quick # Skip TypeScript ``` ## How This Works 1. `cmd/render-skeleton/main.go` - CLI tool that renders templates using the actual `templates.Provider` 2. `internal/adapter/templates/provider.go` - Has `RenderSkeletonToDir` and `RenderComponentToDir` functions 3. `scripts/verify-skeleton.sh` - CI script that checks sync and attempts builds