create-mern-next-app
v1.1.5
Published
⚡ A CLI tool to quickly scaffold a customizable MERN stack app using Next.js, Tailwind CSS & TypeScript.
Maintainers
Readme
Create MERN Next App
A CLI tool to create a MERN stack application with Next.js, TypeScript, and Tailwind CSS.
Features
- Next.js setup with TypeScript and Tailwind CSS
- App Router structure
- Option to choose UI libraries (Shadcn UI, Material UI, Radix UI)
- Option to add animation frameworks (Framer Motion, GSAP, Three.js)
- MERN Stack dependencies selection
- Extra utilities and dependencies selection
- Monorepo structure with frontend and backend in one folder
Installation
npm install -g create-mern-next-appUsage
create-mern-next-app my-projectThis will:
- Create a new Next.js project with TypeScript and Tailwind CSS
- Prompt you to select a UI library
- Ask you to choose animation frameworks
- Let you select MERN Stack dependencies
- Allow you to pick additional utilities and dependencies
- Set up the project structure with both frontend and backend
Project Structure
my-project/
├── src/
│ ├── app/ # Next.js app directory
│ ├── components/ # React components
│ ├── backend/ # Backend code
│ │ ├── controllers/ # Route controllers
│ │ ├── models/ # Database models
│ │ ├── routes/ # API routes
│ │ ├── middleware/ # Custom middleware
│ │ └── config/ # Configuration files
│ └── types/ # TypeScript type definitions
├── public/ # Static files
└── package.json # Project dependenciesAvailable UI Libraries
- Shadcn UI
- Material UI
- Radix UI
Available Animation Frameworks
- Framer Motion
- GSAP
- Three.js
MERN Stack Dependencies
- Express
- MongoDB
- Mongoose
- MySQL
- MySQL2
Extra Dependencies
- CORS
- Axios
- dotenv
- Zod
- bcryptjs
- jsonwebtoken
- socket.io
- socket.io-client
- lucide-react
- react-icons
License
MIT
