@chinh/vrp-tools
0.1.4 • Public • Published
VRP Tools
Installation##
- Install Nodejs - Install the latest stable version of Nodejs via nodejs.org
- install vrp-tools package from npm -
npm install vrp-tools -g
Features
ACTION |
DESCRIPTION |
genOrder |
generates n number of delivery orders and inserts into SQL DB |
syncCollection |
syncs mongoDB collections of given server and azure cloud server |
updateProfile |
updates users' prfile in MongoDB |
How to use
genOrder
vrp-tools genOrder -n <n> -U [username] -P [password] -S [server] -d [database]
Option |
Description |
-U, --user |
username of sql db to be connected |
-n, --numOfOrders |
number of orders to be generated |
-P, --pass |
password of sql db to be connected |
-S, --server |
server ip of db to be connected |
-d, --database |
name of sql db to be connected |
syncCollection
vrp-tools syncCollection -U [username] -c[collection] -P [password] -S[serverport] -d [databasename] -t [clouddbname] -r [cloudservername]
Option |
Description |
-U, --user |
username of mongodb to be connected |
-c, --collection |
name of collection to be synced |
-P, --pass |
password of mongodb to be connected |
-S, --serverPort |
ip and port of server to which mongo collection to be imported |
-d, --database |
name of mongodb to be connected |
-t, --cloudDbName |
name of the DB to which mongo collection to be imported |
-r, --cloudServer |
name of the cloud server |
updateProfile
vrp-tools updateProfile -u [mongourl] -p <profiletypes> -d [dirprefix]
Option |
Description |
-u, --mongoUrl |
mongodb url(with port and db name) to be connected |
-p, --profileTypes |
types of profile user want to update |
-d, --dirPrefix |
path to profile jsons |
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads