ts-express-mongoose-crud-gen
v1.0.1
Published
TS Express Monggose CRUD generator is npm package that helps to generate typescript modules
Downloads
4
Readme
TypeScript Express Mongosse Crud Modules Generator
Overview
This Node.js script facilitates the rapid setup of a TypeScript Express project structure tailored for Express.js applications. The script automates the generation of crucial files, including interfaces, models, routes, controllers, and services, enforcing a standardized naming convention.
Key Features
- File Generation: Automatically creates TypeScript files with predefined structures, promoting consistency in project organization.
Usage
Input Parameters: Provide the target directory path and a base file name as input parameters.
Execution: Run the script to generate project files, adhering to the specified naming conventions.
Consistent Project Layout: Encourages a standardized project structure for TypeScript-based Express.js applications.
Getting Started
These instructions will guide you on setting up and running the project on your local machine.
Prerequisites
Ensure you have the following software installed on your machine:
Installation
Command.
npm i ts-express-mongoose-crud-gen
Navigate to the project cli.
generate-modules ./path fileName
And here you go a bowler plate with routing , controller, service , utils , model generated.
Usage Examples
- Provide examples of how users can use your package to generate modules. Include command examples and explanations.
# Example:
generate-modules ./src/modules/user user