@ps-cli/express
v2.3.2
Published
Express Boilerplate Boilerplate based upto express-generator
Readme
Express' application generator for Pheadera Solution based on on lib express-generator.
Installation
$ npm install -g @ps-cli/expressQuick Start
The quickest way to get started with express is to utilize the executable express(1) to generate an application as shown below:
Create the app:
$ ps-express new <name>or
$ pse new <name>Options
Usage: ps-express new [options] <name>
Generates a new project
Options:
-i, --install intsall all dependantcies
-g, --git initialize git
-h, --help Help in optionsInstall dependencies:
$ npm installStart your Express.js app at http://localhost:3000/:
$ npm startAdding a route:
$ pse genrate route <name>or
$ pse g r <name>Adding a service
$ pse genrate service <name>or
$ pse g s <name>Options:
Generate
Usage: ps-express generate|g [options] [command]
Options:
-h, --help Get the help info
Commands:
route|r [options] <name> Generate a route
service|s <name> Generate a service
help [command] display help for commandRoute
Usage: ps-express generate route|r [options] <name>
Generate a route
Options:
-c, --crud Generates CRUDS as well
-h, --help Help in optionsService
Usage: ps-express generate service|s [options] <name>
Generate a service
Options:
-h, --help Help in optionsCommand Line Options
This generator can also be further configured with the following command line flags.
Usage: ps-express [options] [command]
Gives the verison of CLI
Options:
-v, --version Version
-h, --help Get the help info
Commands:
new [options] <name> Generates a new project
generate|g
