@codeenthusiast09/create-express-app
v1.0.5
Published
CLI tool to generate production-ready Express TypeScript projects with flexible database options (MongoDB, PostgreSQL with Prisma or Drizzle)
Maintainers
Readme
@codeenthusiast09/create-express-app
CLI tool to generate production-ready Express TypeScript projects with flexible database options.
Usage
# Using npx (recommended - always uses latest version)
npx @codeenthusiast09/create-express-app my-project
# Or install globally
npm install -g @codeenthusiast09/create-express-app
create-express-app my-projectWhat You Get
- Clean Architecture - NestJS-inspired modular structure
- Type Safety - Strict TypeScript configuration with path aliases
- Validation - Request validation with Zod
- Logging - Structured logging with Pino
- Configuration - Type-safe config with environment validation
- Database Flexibility - Choose MongoDB, PostgreSQL with Prisma, or PostgreSQL with Drizzle
- Code Quality - ESLint + Prettier configured
- Docker - Optional Docker setup with multi-stage builds
- Testing - Jest configured and ready
Interactive Setup
The CLI will ask you:
- Project name - Name of your project
- Database - MongoDB or PostgreSQL
- ORM (if PostgreSQL) - Prisma or Drizzle
- Docker - Include Docker setup? (Yes/No)
What Happens
- ✓ Copies template files
- ✓ Configures database based on your choice
- ✓ Installs dependencies
- ✓ Initializes git repository
- ✓ Creates initial commit
- ✓ Shows next steps
Database Options
MongoDB with Mongoose
- Simple, flexible schema
- Great for rapid development
- NoSQL advantages
PostgreSQL with Prisma
- Best-in-class DX
- Powerful migrations
- Auto-generated types
- Recommended for most projects
PostgreSQL with Drizzle
- Maximum type safety
- Better performance than Prisma
- SQL-like API
- For advanced users
Development
# Clone the repository
git clone https://github.com/CodeEnthusiast09/create-express-app.git
cd create-express-app
# Install dependencies
npm install
# Run in development mode
npm run dev -- my-test-project
# Build for production
npm run build
# Test the built version
node dist/index.js my-test-projectLicense
MIT
