xanimo / dogecoin-payment-server-archive

MIT License
1 stars 3 forks source link

Don't start docker container in the app #1

Closed rllola closed 2 years ago

rllola commented 2 years ago

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 not 200 we exit and show an error message that will inform that the node is not reachable.