pwan
v0.0.1
Published
Prosperna1 microservices project generator
Downloads
2
Readme
pwan
Pronounced as P1. pwan
is Prosperna's service API project generator.
Usage
$ npm install -g pwan
$ pone COMMAND
running command...
$ pone (--version)
pwan/0.0.1 win32-x64 node-v16.13.0
$ pone --help [COMMAND]
USAGE
$ pone COMMAND
...
$ npm install -g pwan
$ pone COMMAND
running command...
$ pone (--version)
pwan/0.0.0 win32-x64 node-v16.13.0
$ pone --help [COMMAND]
USAGE
$ pone COMMAND
...
Commands
pwan new
USAGE
$ pwan new -d <value>
ARGUMENTS
FLAGS
-d, --domain=<value> (required) The domain of the service to be generated
-r, --repoName=<value> (optional) The name of service directory. If empty, the domain name will be used
to name the directory using this convention `domain-service-api`
--noTest, Providing this flag will tell the cli NOT to create test files for the the files/codes to be generated.
DESCRIPTION
Generates a new project. The command will also install all dependencies.
EXAMPLES
$ pwan new -d shipping
$ pwan new -d shipping -x
pwan collection
USAGE
$ pwan collection -c <value>
ARGUMENTS
FLAGS
-c, --collection=<value> (required) An individual collection that composed a service.
For example, shipping service/domain will have collections like JNT, Lalamove etc.
-o, --only=<value> (optional) Explicitly tell the CLI which files must be created.
Any permutation of 'crsm' whether three, two or one letter combination.
(c)ontroller (r)epository, (s)ervice, (m)odel. If no value provided, the CLI will create all files.
--noTest, Providing this flag will tell the cli NOT to create test files for the the files/codes to be generated.
DESCRIPTION
Create an individual collection (contained in its own directory) inside the 'src/collections' directory.
EXAMPLES
$ pwan collection -c jnt
$ pwan collection -c lalamove
$ pwan collection -c lalamove -o rs
$ pwan collection -c lalamove -o rsm
$ pwan collection -c lalamove -o r
$ pwan collection -c lalamove -o m -x
$ pwan collection -c lalamove -o rsm -x