create-express-ts-mongo-app
v1.0.7
Published
Beautiful CLI to scaffold production-ready Express + MongoDB + TypeScript API
Maintainers
Readme
✨ What's Included
- ✅ Express + TypeScript
- ✅ MongoDB + Mongoose
- ✅ JWT Authentication
- ✅ User CRUD operations
- ✅ Role-based authorization
- ✅ Request validation
- ✅ Rate limiting
- ✅ Swagger API docs
- ✅ Winston logging
- ✅ Docker support
- ✅ Environment configs
- ✅ Jest testing setup
- ✅ Makefile automation
🚀 Installation
Using npx (Recommended)
npx create-express-ts-mongo-app my-projectUsing npm
npm init express-ts-mongo-app my-project📖 Usage
Interactive Mode
npx create-express-ts-mongo-appYou'll be prompted for:
- Project name - Name of your project (validated as npm package name)
Quick Start (Skip Prompts)
npx create-express-ts-mongo-app my-app --yesCommand Options
| Option | Description |
|------------------|--------------------------------------------------|
| [project-name] | Name of your project |
| -y, --yes | Skip prompts and use defaults (my-express-api) |
| --no-git | Skip git initialization |
| -v, --version | Show version number |
| -h, --help | Show help |
Examples
# Interactive mode - prompts for project name
npx create-express-ts-mongo-app
# Create project with custom name
npx create-express-ts-mongo-app my-awesome-api
# Skip all prompts (uses default name: my-express-api)
npx create-express-ts-mongo-app --yes
# Create with custom name, skip prompts
npx create-express-ts-mongo-app my-api -y
# Create without git initialization
npx create-express-ts-mongo-app my-api --no-git