Skip to content

thatonevikash/create-next-mui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

82 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CREATE-NEXT-MUI-BANNER

npm version Next.js MUI

Scaffold a production-ready Next.js + Material UI application in seconds.

The generated project comes preconfigured with:

  • ⚑ Next.js App Router
  • 🎨 Material UI
  • πŸ“¦ TypeScript or JavaScript templates
  • 🧹 ESLint Flat Config
  • πŸ“ Scalable project structure

No global installation required.


Quick Start

Create a new project:

npx create-next-mui my-app

or

npm init next-mui

If no project name is provided, the CLI will guide you through the setup interactively.

npx create-next-mui

Non-interactive Mode

Use the --yes (or -y) flag to skip prompts and accept the default configuration.

npx create-next-mui my-app --yes

This will automatically:

  • use the provided project name
  • select the TypeScript template
  • generate the project without prompting

This is especially useful for:

  • CI/CD pipelines
  • automation scripts
  • testing
  • quick project generation

Interactive Setup

Without --yes, the CLI walks you through the available options.

Current prompts include:

  • Project name
  • Language selection
    • TypeScript (recommended)
    • JavaScript
  • Features
    • Zustand
    • React Query ( TanStack Query )

Available Templates

TypeScript

Recommended for most projects.

Includes:

  • TypeScript
  • strict type checking
  • MUI theme typings
  • ESLint Flat Config

JavaScript

For developers who prefer JavaScript.

Includes:

  • modern JavaScript
  • Material UI
  • ESLint Flat Config

Features

  • Zustand
  • React Query ( TanStack Query )

Generated Project Structure

my-app/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ components/
β”‚   └── theme/
β”œβ”€β”€ eslint.config.mjs
β”œβ”€β”€ next.config.js
β”œβ”€β”€ package.json
└── README.md

What's Included

Every generated project comes configured with:

  • Next.js App Router
  • Material UI
  • Theme Provider
  • Emotion integration
  • ESLint v9 Flat Config
  • eslint-plugin-perfectionist
  • eslint-plugin-unused-imports
  • organized project structure

Development artifacts such as node_modules, .next, and build caches are excluded from generated projects.


Getting Started

After scaffolding:

cd my-app
npm install
npm run dev

Useful scripts:

npm run dev

Start the development server.

npm run lint

Run ESLint.

npm run build

Create a production build.


CLI Reference

Create a project

npx create-next-mui my-app

Interactive mode

npx create-next-mui

Accept defaults

npx create-next-mui my-app --yes

or

npx create-next-mui my-app -y

Blogs


Contributing

Issues and pull requests are welcome.

If you'd like to improve the templates or add new features, feel free to open an issue or submit a PR.


License

MIT

Releases

Contributors

Languages