* Improve the console messaging on starting the app to avoid confusion.
* Revise logging to present intended URI alongside actual
---------
Co-authored-by: Danyal Aytekin <danyal@alienpaper.com>
Address all eslint warnings that were still present by:
* Extracting code to a new function in order to reduce complexity
* Renamed error variables and use shorthand notation for objects
* Disabling eslint warnings where addressing the issue would require too much refactoring
There are two ways of setting a configuration for this app: config files, and environment variables. This makes it easy for the app to run with a different config from the one that you intend to run it with.
Currently, only the NODE_ENV variable and server url are being printed out on startup.
This PR adds the database config and the cron config to the details being displayed. This may help debug configuration issues, database issues, and specially making easier to understand what config is being used when for example running in a container.