Registry / devops / create-express-mongodb-ts-starter

create-express-mongodb-ts-starter

JSON →
library1.0.8jsnpmunverified

Create Express MongoDB TypeScript Starter (v1.0.8) is a CLI scaffolding tool that generates a production-ready Express + MongoDB + TypeScript application with built-in security, validation (Zod), logging (Pino), Swagger docs, and error handling. It targets Node >=18 and provides a structured project following best practices. It differentiates itself from other starters by bundling Mongoose 8, Express 5, Zod schemas, and a clean modular architecture out of the box. Releases are infrequent; the package is stable but not actively updated.

npm install create-express-mongodb-ts-starter
INSTALL
IMPORT
SIG · CREATE-EXPRESS-MON
C
create-express-mongodb-ts-starter
devopsjavascriptv1.0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
npx create-express-mongodb-ts-starter my-app
npm install -g create-express-mongodb-ts-starter && create-express-mongodb-ts-starter my-app
Use npx to avoid global install. The package is a CLI, not a programmatic API.

Scaffold a new project, copy environment variables, install dependencies, and start the development server.

npx create-express-mongodb-ts-starter my-app cd my-app cp .env.example .env # Edit .env with your MongoDB URI and other settings npm install npm run dev
Debug
Known issues
gotchaThe npx command will create a folder named 'my-app' in the current directory; ensure no folder with that name already exists.
fix
Use a different project name or delete existing folder.
affects: >=1.0.0
gotchaThe generated .env file is not created automatically; you must copy .env.example to .env manually.
fix
Run 'cp .env.example .env' after scaffolding.
affects: >=1.0.0
gotchaNode.js version must be >=18.0.0; older versions will cause errors.
fix
Upgrade Node.js to v18+ or use nvm to switch.
affects: >=1.0.0
gotchaMongoose 8 requires MongoDB 5.0 or later; older MongoDB versions are not supported.
fix
Ensure your MongoDB instance is at least version 5.0.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'zod'
Dependencies not installed yet; npm install not run.
fix
Run 'npm install' in the project directory.
Error: listen EADDRINUSE: address already in use :::3000
Port 3000 is already occupied by another process.
fix
Change PORT in .env or kill the process using port 3000.
MongooseServerSelectionError: connect ECONNREFUSED ::1:27017
MongoDB is not running on localhost:27017.
fix
Start MongoDB or update MONGODB_URI in .env to point to a running instance.
Upgrade
Version history
1.0.8latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
create-express-mongodb-ts-starter — npm install create-express-mongodb-ts-starter · libregistry