A minimal boilerplate to quick start new projects with Next.js, TypeScript, and modern tooling.
- Next.js 16 with Turbopack
- React 19
- TypeScript 5
- CSS Modules
- Vitest + React Testing Library
- Storybook 10
- ESLint 9 + Prettier
- Husky + lint-staged
- Commitlint
npx create-next-app -e https://github.com/helderburato/nextjs-boilerplateInstall dependencies and run the development server:
npm install
npm run devOpen http://localhost:3000 with your browser.
| Command | Description |
|---|---|
npm run dev |
Start dev server (Turbopack) |
npm run build |
Production build |
npm start |
Start production server |
npm test |
Run tests |
npm run test:watch |
Run tests in watch mode |
npm run lint |
Run ESLint |
npm run format |
Format with Prettier |
npm run storybook |
Start Storybook |
npm run generate |
Scaffold a new component |
Generate a new component with all boilerplate files:
npm run generateThis creates:
index.tsx- ComponentComponentName.module.css- Stylesstories.tsx- Storybook storytest.tsx- Test file
The easiest way to deploy your Next.js app is to use Vercel.
Check out Next.js deployment documentation for more details.