How jjunior96/next-template works
Component Relationships
• Client-side components interaction with API routes
• API routes interaction with services
• Error handling flow
• Data flow between components
Development Infrastructure
• Testing infrastructure (Jest, RTL, Cypress)
• Build tools (Next.js configuration)
• Style system (Styled Components)
• Form handling (React Hook Form + Yup)
Use the following visual elements:
• Blue: Frontend components
• Green: API/Backend services
• Yellow: Testing infrastructure
• Purple: External services
• Red: Error handling
• Gray: Utilities and helpers
Special Considerations:
SSR Architecture
• Next.js SSR flow
• Interaction between server and client components
• Styled-components SSR setup
Testing Flow
• How Jest, RTL, and Cypress interact with the application
• Test utilities and mocks
Development Tools
• ESLint, Prettier, and Husky workflow
• How lint-staged fits into the process
State Management
• Local state management
• Form state handling with React Hook Form
• Any abbreviations or technical terms
• Component groupings