Commands
The SugoiJS cli pre-defined commands
Initialization
For initiating a new project use the init
command.
After you'll run this command you will need to answer few questions which will help you to set the application you need
Generate
SugoiJS provides easy generation tool by the g
or generate
argument
Available types
module (m) - Generate a module with one service and one controller which contains the module name
After generating new module you will have to inject it to bootstrap module.
controller (c) - Generate a controller under 'controllers' directory.
After generating new controller you will have to inject it to the related module.
service (s) - Generate a service under 'services' directory.
After generating new service you will have to inject it to the related module.
model - Generate a model class.
mongo-model - Generate a mongo model class.
Commands example
Last updated