at11 icon indicating copy to clipboard operation
at11 copied to clipboard

Promisification

Open srnec opened this issue 5 years ago • 0 comments

  • added new eslint rules & better configured existing eslint rules
  • extracted OCR related logic into separate service class (can be reused in future for other restaurant parsers)
  • added promise with timeout utility function (basically it adds the way to time out promises)
  • extracted HTML scraping logic into its own service class (to extract logic into its own class and it will ease unit testing in future)
  • promisification - getting rid of callbacks in favor of promises (mainly in MenuFetcher)
  • refactored Config - it is no longer needed to instantiate it, it can be imported from anywhere

Next time I want to check for better options in debugging, watching (realtime reload) etc.

srnec avatar Jul 01 '20 21:07 srnec