solid-node-structure
v1.0.5
Published
create your files using S.O.L.I.D principles
Downloads
8
Readme
About
solid node script is a library that is intended to suggest a structure based on solid principles. With it you'll be able to generate your files quickly and objectively
Installation
npm install solid-node-structure --save-dev
then, you need to create a ** solid.config.json ** file at the root of your project, telling the library where to start the useCases structure. Will need contains
{
"defaultPaths": "src/modules/"
}
Then create a script in your package.json to start the solid-node structure from the terminal. Example:
If you prefer, use the alias ** sns ** like this:
"scripts": {
"sns": "sns",
}
create a module
module=[moduleName]
exemple:
npm run sns module=feeds
create a repositorie
run repository=[moduleName]:[repositoryName]
exemple:
npm run sns repository=feeds:points
create a Model
run model=[moduleName]:[modelName] exemple
npm run sns model=feeds:points
create an UseCase
npm run sns usecase=feeds:points