Skip to content

Refactoring scratch pad

Prasad Talasila edited this page Jun 12, 2017 · 74 revisions
  1. The view part right now is console.log. This is deeply embedded in the application. We need to consolidate the view part to one location so that multiple views can be supported from the same model-controller setup.

  2. What is the preferred way of specifying the module exports? Are we following the preferred way? In lib/help.js, the crux of the work is done on the module.exports line. Is there a better way?

  3. Debug messages sent to log manager by Winston logger.

  4. Lines 36-65 of index.js can be cleaned up using a <string,call-back-fn> map.

  5. Configuration file to be maintained separately. Username and password can be part of the configuration file too. Default configuration file to exist for the installation. User defined parameters can override the values of the default configuration file.

Clone this wiki locally