Browse Source

Merge pull request #56 from 0xflotus/master

fixed cmd.helper.js and readme.md
pull/59/head
o1lab 6 years ago committed by GitHub
parent
commit
2fae80e348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      README.md
  2. 2
      lib/util/cmd.helper.js

4
README.md

@ -155,7 +155,7 @@ eg: blogs is parent table and comments is child table. API invocation will resul
``` ```
/api/payments/103___JM555205 /api/payments/103___JM555205
``` ```
*___* : If there are multiple primary keys - seperate them by three underscores as shown *___* : If there are multiple primary keys - separate them by three underscores as shown
## Pagination ## Pagination
@ -935,7 +935,7 @@ http://localhost:3000/_version
-u, --user <n> Username of database -> root by default -u, --user <n> Username of database -> root by default
-p, --password <n> Password of database -> empty by default -p, --password <n> Password of database -> empty by default
-d, --database <n> database schema name -d, --database <n> database schema name
-r, --ipAddress <n> IP interface of your server / locahost by default -r, --ipAddress <n> IP interface of your server / localhost by default
-n, --portNumber <n> Port number for app -> 3000 by default -n, --portNumber <n> Port number for app -> 3000 by default
-o, --port <n> Port number of mysql -> 3306 by default -o, --port <n> Port number of mysql -> 3306 by default
-a, --apiPrefix <n> Api url prefix -> /api/ by default -a, --apiPrefix <n> Api url prefix -> /api/ by default

2
lib/util/cmd.helper.js

@ -18,7 +18,7 @@ program
.option('-u, --user <n>', 'username of database / root by default') .option('-u, --user <n>', 'username of database / root by default')
.option('-p, --password <n>', 'password of database / empty by default') .option('-p, --password <n>', 'password of database / empty by default')
.option('-d, --database <n>', 'database schema name') .option('-d, --database <n>', 'database schema name')
.option('-r, --ipAddress <n>', 'IP interface of your server / locahost by default') .option('-r, --ipAddress <n>', 'IP interface of your server / localhost by default')
.option('-n, --portNumber <n>', 'port number for app / 3000 by default') .option('-n, --portNumber <n>', 'port number for app / 3000 by default')
.option('-o, --port <n>', 'port number for mysql / 3306 by default') .option('-o, --port <n>', 'port number for mysql / 3306 by default')
.option('-s, --storageFolder <n>', 'storage folder / current working dir by default / available only with local') .option('-s, --storageFolder <n>', 'storage folder / current working dir by default / available only with local')

Loading…
Cancel
Save