Skip to content

Node js package makes creating node jd dependincies files like Controllers,Entities and Repositories easier by executing a few instructions

License

Notifications You must be signed in to change notification settings

Syrian-Open-Source/nodejs-studio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodejs Studio

Node js package makes creating node js project dependincies files like Controllers,Entities and Repositories easier by executing a few instructions

Dependencies

The first step is using npm to install the package and automatically update your package.json file, you can do this by running:

npm install nodejs-studio
  • Creat bin folder in root directoty

Screenshot

  • Inside bin folder create create-classes file

Screenshot

  • Copy this to create-classes :
#!/usr/bin/env node

require = require("esm")(module /*, options*/ );
require("nodejs-studio").create(process.argv);
  • add this to package.json
 "bin": {
      "create": "bin/create-classes"
  },
  "keyword": [
      "create"
  ]

Features

  • Create a package folder easily and quickly which contains :
    • Controllers
    • UseCases
    • Entities
    • Repositories
  • Possibility to create a custom file type

Usage

  • To creat package folder type this in cmd:
create --type package --name <your-package-name>

or

create -t package -n <packageName>

Then you can see that the package has been created:

Screenshot

  • To creat controller type this in cmd:
create --type controller --name <controllerName>  --path <path>

or

create -t c -n <controllerName>  -p <path>
  • To see all commands type this in cmd:
create --type help

Security

If you discover any security related issues, please email them first to "mt880806@gmail.com", if we do not fix it within a short period of time please open a new issue describing your problem.

Credits

Mohammed Taha

About Syrian Open Source

The Syrian Open Source platform is the first platform on GitHub dedicated to bringing Syrian developers from different cultures and experiences together, to work on projects in different languages, tasks, and versions, and works to attract Syrian developers to contribute more under one platform to open source software, work on it, and issue it with high quality and advanced engineering features, which It stimulates the dissemination of the open-source concept in the Syrian software community, and also contributes to raising the efficiency of developers by working on distributed systems and teams.

About

Node js package makes creating node jd dependincies files like Controllers,Entities and Repositories easier by executing a few instructions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published