Skip to content

πŸ’Ž A modern, batteries-included Next.js 15 frontend boilerplate β€” TypeScript, Mantine, Vitest, Playwright, i18n, Storybook, ESLint, and more β€” ready for production.

License

Notifications You must be signed in to change notification settings

shaadcode/Nextjs-Frontend-Boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Next.js Frontend Boilerplate

A modern, batteries-included Next.js 15 frontend boilerplate designed for rapid development and scalable applications.


🎯 Features

  • ⚑ Next.js 15 with Turbopack support
  • 🎨 UI powered by Mantine v7
  • 🌍 Built-in Internationalization (i18n) with next-intl
  • πŸ§ͺ Vitest for unit testing + vitest-setup.ts
  • 🧭 Playwright for E2E testing
  • 🧼 Strict linting via ESLint and lint-staged
  • 🎨 TailwindCSS v4 ready
  • πŸ“¦ Storybook 8 with onboarding & styling addons
  • πŸ“– Commitlint, Husky, and Conventional Commits setup
  • πŸ“ TypeScript + aliases + strong types
  • ✨ Pre-configured postcss, cz-git, and custom scripts
  • πŸ—‚οΈ Clean folder structure and scalable architecture

πŸ› οΈ Getting Started

πŸ“¦ Requirements

  • Node.js β‰₯ 20
  • pnpm = 10.10.0

πŸ”§ Installation

pnpm install

🏁 Run the app (with Turbopack)

pnpm dev

This opens http://localhost:3000 automatically.

πŸ§ͺ Scripts

Command Description
pnpm dev Start dev server (Turbopack)
pnpm build Build for production
pnpm lint Run ESLint
pnpm test Run unit tests via Vitest
pnpm test:e2e Run E2E tests with Playwright
pnpm storybook Launch Storybook locally
pnpm build-storybook Export static Storybook

🧩 Technologies Used

  • Next.js 15

  • React 19

  • TypeScript 5

  • Mantine UI 7

  • TailwindCSS 4

  • Vitest + @vitest/browser

  • Playwright

  • Storybook 8

  • ESLint (Airbnb-style + accessibility + Playwright)

  • PostCSS

  • Commitlint + cz-git

  • Husky


🌍 Localization (i18n)

Powered by next-intl. All messages are managed inside:

src/config/i18n/messages/{locale}.json

πŸš€ Deployment

You can deploy to any Vercel-compatible platform. Just make sure to set environment variables correctly via .env.


πŸ§‘β€πŸ’» Author

Made with ❀️ by Seyed Mojtaba Shadab
πŸ“§ [email protected]
πŸ”— GitHub


πŸ“„ License

MIT