View Code? Open in Web Editor
NEW
NodeJSTerminalInteractiveSample
License: Apache License 2.0
JavaScript 4.86%
TypeScript 90.76%
HTML 2.56%
Batchfile 0.18%
Shell 0.16%
CSS 1.47%
nodejsterminalinteractivesample's Introduction
- install nodejs
- This step actually pretty obvious, but Just in case... Open Terminal / CMD
- run
npm install typescript -g
- clone or download this project, and enter to its directory
- run
npm install -d
- run
npm run compile
for mac / Linux
- run
npm run compile-win
for Windows
- run
npm run reset
- You may need key files to connect to mongodb via ssh tunnel, put them in "key" folder
- run
npm run start
- type help for avaliable commands
Update Hotel Forever mode
- Run
updatehotels -f
- That's it
- To update hotels data, create new document in
Hotel_Update_Request
collection
- document should have
sabreID
- to update hotels scheduled by os cronjob, run the program with arguments
updatehotels -o
npm run start updatehotels -o
npm install -g nvm
nvm install v11.11.0
nvm exec npm install -d
nvm exec npm run compile
nvm exec npm run start