Code Monkey home page Code Monkey logo

nodejsterminalinteractivesample's Introduction

SuiteTreatSabreData

How to build?

  • 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

How to run?

  • 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

Guide

  • To update hotels data, create new document in Hotel_Update_Request collection
  • document should have sabreID

using cronjobs

  • to update hotels scheduled by os cronjob, run the program with arguments updatehotels -o
  • npm run start updatehotels -o

Using nvm

  • npm install -g nvm
  • nvm install v11.11.0
  • nvm exec npm install -d
  • nvm exec npm run compile
  • nvm exec npm run start

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.