create-postpipe-user
v1.0.4
Published
CLI to scaffold PostPipe Mongoose User Model
Readme
Create PostPipe User
CLI to scaffold the PostPipe User Model (Mongoose) and DB Connector.
Features
- ⚡ Instant Model: Scaffolds a complete Mongoose User Schema.
- 🔌 MongoDB Connector: Includes optimized database connection logic.
- 🛡️ Type Safety: Exports TypeScript interfaces for the User model.
Usage
Run this command in your Next.js project root:
npx create-postpipe-userWhat it does
- Installs
mongoose. - Creates
src/lib/models/User.tswith schema validation. - Creates
src/lib/dbConnect.tsfor efficient connection caching.
Credits
Created by Sourodip Roy.
License
CC-BY-NC-SA-4.0
