A modern Next.js 16 project skeleton with TypeScript, built using the App Router architecture. This project follows atomic design principles and includes a comprehensive setup for development, testing, and code quality.
- Next.js 16 with App Router and Turbopack
- React 19 for modern React features
- TypeScript for type safety
- Tailwind CSS 4 for utility-first styling
- SASS/SCSS Modules for component-scoped styles
- Zustand for state management
- API Client - structured API service layer with TypeScript
- Atomic Design Pattern - organized component structure (atoms, molecules, organisms, templates)
- Cypress for end-to-end testing
- Prettier for code formatting
- Path Aliases -
@/*for cleaner imports - Custom Hooks - reusable React hooks (e.g.,
useDebounce)
src/
├── app/ # Next.js App Router pages
│ ├── layout.tsx # Root layout
│ └── page.tsx # Home page
├── components/
│ ├── atoms/ # Basic building blocks
│ ├── moleculs/ # Simple component groups
│ ├── organism/ # Complex components
│ └── templates/ # Page-level layouts
├── api/ # API client and services
│ ├── client.ts # API client with fetch wrapper
│ ├── config.ts # API configuration
│ ├── types.ts # API types
│ └── services/ # API service modules
├── config/ # Configuration files
├── data/ # Mock data and constants
├── hooks/ # Custom React hooks
├── stores/ # Zustand state stores
└── styles/ # Global styles
- Node.js 20.9+ (required for Next.js 16)
- npm, yarn, pnpm, or bun
Install dependencies:
npm install
# or
yarn install
# or
pnpm installRun the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
The page auto-updates as you edit files in the src directory.
Create a production build:
npm run buildStart the production server:
npm run startnpm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLintnpm run format- Check code formattingnpm run format:fix- Fix code formattingnpm run cypress- Open Cypress test runner