1.0.7 • Published 10 months ago
nodebasecli v1.0.7
nodebase-cli
This is a package developed to helps you to create industry standard code structure
To install cli
npm i -g nodebasecliAvailable Cli commands
This package comes with cli commands to create controller, model, middleware and mail
Create Controller
This cli command will create controller
nodebase make:controller UserControllerCreate Model
This cli command will create model
nodebase make:model UserDetailCreate Mail
This cli command will create mail
nodebase make:mail OrderMailCreate Middleware
This cli command will create middleware
nodebase make:middleware KeyValidateMiddlewareInstall socket server
This cli command will install and set socket server to you server file
nodebase app:install socketcopy the code below to server file
import { Server } from 'socket.io';
import { SocketController } from './app/controllers/socket/socketController.js';Add Aws Services
Add Aws Services
This cli command will add aws services to your project
The services you can add are:
- sqs
- sns
- ses
- sts
- s3
nodebase app:add sqs
OR
nodebase app:add sns
OR
nodebase app:add ses
OR
nodebase app:add sts
OR
nodebase app:add s3The service files will be createn in the aws folder inside utils