1.0.3 ⢠Published 6 months ago
mvc-model-generator v1.0.3
MVC Model Generator
A Node.js script to generate directory structures for MVC-based applications.
š Features
ā
Automatically creates directories for an MVC application
ā
Supports configurable file structures
ā
Simple and easy to use
š„ Installation
Using npm (for general use)
npm install -g mvc-model-generator
š Usage
After linking the package, you can import and use it in your Node.js script:
import { init } from "mvc-model-generator";
init();
This will generate the following directory structure in the current working directory:
š project-root
āāā š config
āāā š public
ā āāā š css
ā āāā š js
ā āāā š images
āāā š src
ā āāā š models
ā āāā š views
ā āāā š controllers
ā āāā š routes
ā āāā š middleware
āāā š test
āļø Configuration (Optional)
If you want to customize the directory structure, modify the fileTree
array inside index.js
:
const fileTree = [
"config",
{"public": ["css", "js", "images"]},
{"src": ["models", "views", "controllers", "routes", "middleware"]},
"test"
];
š ļø Development
Cloning the Repo
git clone https://github.com/MB-PieSec/MVC-Model-Generator.git
cd MVC-Model-Generator
npm install
š License
This project is licensed under the ISC License. See the LICENSE file for details.
š® Contributing
Feel free to submit issues or pull requests on GitHub:
š GitHub Repository