create-exs is a blazing-fast CLI to scaffold customizable Node.js backend projects with TypeScript, MongoDB, GraphQL, Docker, ESLint, and more—powered by clean code and developer love.
- ✨ Zero Boilerplate — Eliminate repetitious setup steps
- 🔧 Fully Configurable — Pick only the tech you need
- ⚡ Guided Prompts — Get your project up in seconds
- 🏗️ Best Practices — Folder structure & defaults you’ll love
- Customizable Stack: MongoDB, GraphQL, CORS, Docker, ESLint, Prettier, and more
- TypeScript Ready: Full TS support and
@/srcpath aliases - Built-in Dev Tools: Morgan logger, custom error handlers,
.envsupport - Docker Support: Auto-generated Dockerfile for containerization
You can use create-exs without installing it globally, thanks to npx, or install it in your project:
# Recommended: run via npx (always latest)
npx create-exs
# Or globally:
npm install -g create-exs
create-exs
# Or locally (per project):
npm install create-exs
npx create-exs
🔗 npm package: https://www.npmjs.com/package/create-exs
⚙️ Usage
Run
npx create-exs
Answer prompts to tailor your stack:
Project Name
Language (JavaScript / TypeScript)
MongoDB (Mongoose)
GraphQL (Apollo Server)
CORS Middleware
Error Handler
.env File
Morgan Logger
Dockerfile
ESLint & Prettier
Path Aliases (@/src)
Auto-install Dependencies
Start coding!
cd your-project-name
npm run dev
🗂️ Project Structure
text
Copy
Edit
your-project-name/
├── src/
│ ├── config/
│ ├── controllers/
│ ├── models/
│ ├── routes/
│ ├── utils/
│ └── index.(js|ts)
├── .env
├── .eslintrc.js
├── Dockerfile
├── package.json
└── README.md
✅ Express setup
🍃 Optional MongoDB & GraphQL
🌐 CORS & error middleware
🐳 Docker support
🧹 ESLint + Prettier
🔐 .env support
🕵️ Morgan logger
🧭 Path aliasing
🛠️ Contributing
Contributions are very welcome!
Fork the repo
Create your feature branch (git checkout -b feature/awesome-feature)
Commit your changes (git commit -m 'feat: add awesome feature')
Push to the branch (git push origin feature/awesome-feature)
Open a Pull Request
Please read CONTRIBUTING.md for details.
📄 License
This project is licensed under the MIT License — see the LICENSE file for details.
👤 Author
Ayan Hasnain
🔗 GitHub: @ayanhasnain03
🔗 LinkedIn: https://www.linkedin.com/in/ayan-hasnain-543475260/
Made with ❤️ for developers who love clean, fast, and flexible codebases.