A production-ready Enterprise boilerplate for Next.js 16, Material UI v6, and TypeScript.
Create a new project using the CLI:
npx create-falin-next my-app
cd my-app
npm install
npm run devOr with interactive prompts:
npx create-falin-next- Framework: Next.js 16 (App Router)
- Language: TypeScript
- Styling: Material UI v6 + SCSS Modules (Hybrid Approach)
- State Management: Zustand
- Server State: TanStack Query v5
- Forms: React Hook Form + Zod
- Networking: Axios with Interceptors
- Testing: Vitest + React Testing Library
src/
├── api/ # API Service Layer (Stateless, Generic)
├── app/ # Next.js App Router Pages
├── config/ # Environment & Global Configs
├── constant/ # Application Constants
├── hooks/ # React Custom Hooks (Core vs Features)
├── interfaces/ # TypeScript Definitions (DTOs vs Entities)
├── providers/ # Global Context Providers
├── theme/ # Material UI Design System
├── ui/ # Atomic UI Components
└── utils/ # Pure Utility Functions
-
Install Dependencies
npm install
-
Run Development Server
npm run dev
-
Build for Production
npm run build
- Single Source of Truth: All types defined in
interfacesand exported via barrel file. - Service Pattern: API calls encapsulated in static service classes.
- Query Key Factory: Centralized management of React Query keys.
- Theme System: Custom palette, typography, and component overrides in
src/theme.
Each directory contains a README.md explaining its specific rules and patterns.
