Express' application generator for Pheadera Solution based on on lib express-generator.
$ npm install -g @ps-cli/express
The quickest way to get started with express is to utilize the executable express(1)
to generate an application as shown below:
$ 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 options
Install dependencies:
$ npm install
Start your Express.js app at http://localhost:3000/
:
$ npm start
Adding 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 command
Route
Usage: ps-express generate route|r [options] <name>
Generate a route
Options:
-c, --crud Generates CRUDS as well
-h, --help Help in options
Service
Usage: ps-express generate service|s [options] <name>
Generate a service
Options:
-h, --help Help in 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