Instead we should verify that we have a configuration file that indicate us how to communicate with the dogecoin node (url, port, user, password).
At start we can ping the node to verify it is up and accessible. If the answer is not 200 we exit and show an error message that will inform that the node is not reachable.
[x] Create a configuration file (maybe json file ?)
[x] Load the configuration file at start
[x] Error message if the config file not here or incomplete
It is preferable to avoid starting a docker container in the app. (see https://github.com/xanimo/dogecoin-spv-node-middleware/blob/main/src/index.js#L6-L19)
Instead we should verify that we have a configuration file that indicate us how to communicate with the dogecoin node (url, port, user, password).
At start we can
ping
the node to verify it is up and accessible. If the answer is not200
we exit and show an error message that will inform that the node is not reachable.