@devmoshipp/create-express-ts
v1.0.0
Published
CLI to scaffold Express.js + TypeScript projects with best practices
Maintainers
Readme
create-express-ts
CLI to scaffold Express.js + TypeScript projects with best practices.
Usage
# Using pnpm (recommended)
pnpm create express-ts my-app
# Using npx
npx create-express-ts my-app
# Using npm
npm create express-ts my-appInteractive Mode
Simply run the command and answer the prompts:
pnpm create express-ts
? Project name: my-app
? Select template: Full (auth, users, admin, rate limiting)
? Select database: MySQL
? Package manager: pnpm (recommended)
? Initialize git repository? YesCLI Options
create-express-ts [project-name] [options]
Options:
-t, --template <template> Template to use (full, minimal)
-d, --database <database> Database (mysql, postgresql, sqlite)
--no-git Skip git initialization
-h, --help Display helpTemplates
Full
Complete starter with:
- User authentication (JWT)
- User management module
- Admin module with IP blocklist
- Rate limiting
- Winston logging with rotation
- Sequelize migrations
- Zod validation
Minimal
Basic setup with:
- Express + TypeScript
- Winston logging
- Error handling
- Health endpoint
- Sequelize (no models)
Examples
# Full template with MySQL
pnpm create express-ts my-api --template full --database mysql
# Minimal template with PostgreSQL
pnpm create express-ts my-api --template minimal --database postgresql
# Full template with SQLite, no git
pnpm create express-ts my-api -t full -d sqlite --no-gitAfter Creation
cd my-app
pnpm install
cp env.example .env
# Edit .env with your database credentials
pnpm db:migrate
pnpm devLicense
MIT
