create-mern-omar
> A simple CLI generator to quickly scaffold a MERN stack project with Express and Mongoose.
This generator is an opinionated generator that is using express as a framework and mongoose as the ODM.
This generator creates a
ready-to-use backend structure with the following:
- Express server (
server.js)
- MongoDB connection setup (
db/index.js)
- Models folder for Mongoose schemas (
models/)
- Controllers folder for route logic (
controllers/)
-
.env and
.gitignore setup
This generator is implemented using
ES Modules and works as a CLI tool. However the project is using CommonJS
---
Installation
1. Start your application with the following commands:
```bash
mkdir project-name
cd project-name
npm create mern-omar