setting-up-nextjs-projects
Setting Up Next.js Projects
New projects start from the template with the full safety net pre-configured: strict TypeScript, ESLint with type-checked rules, Prettier with Tailwind sorting, environment validation, and test infrastructure.
1. Project Layout
src/
├── app/ # Next.js App Router (routes, layouts, metadata)
│ ├── auth/ # Auth pages
│ ├── dashboard/ # Feature routes
│ └── layout.tsx # Root layout with providers
├── assets/
│ └── icons/ # Figma-exported SVG icons
├── components/
│ ├── layout/ # App shell, sidebar, header, page containers
│ └── ui/ # shadcn/ui primitives (copy-paste, own the code)
More from quick-brown-foxxx/coding_rules_ts
testing-react-ts
React/TypeScript testing with Vitest and Playwright: philosophy, component tests, integration tests, e2e tests, test infrastructure. Use when writing tests or setting up test infrastructure. ALWAYS load this for working with tests in react.
2managing-state
State management patterns: Zustand stores, React Context, URL state, form state. Use when creating stores, managing component state, or choosing state patterns. ALWAYS load this skill when writing any react code!
2writing-react-ts-code
Core React/TypeScript standards: strict typing, Result-based error handling, component patterns, code style. Use when writing or editing any React/TypeScript code. ALWAYS load this skill before working with any react code.
2building-ui-components
UI component patterns: shadcn/ui, component organization, variant system. Use when building or modifying React UI components. ALWAYS load this skill when working with react code.
2building-api-clients
Type-safe API clients: HTTP client, Zod validation, Result pattern, Swagger codegen. Use when creating API integrations or working with backend services. ALWAYS load this skill when working with APIs in react clients
2