Skip to content

Create your files and folders, using the SOLID principles simple, easy and fast

Notifications You must be signed in to change notification settings

bismarck4lves/solid-node-solid-node-structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Create your files and folders, using the SOLID principles simple, easy and fast

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published