Dev environment for building app

#1

I’m currently developing an application that will rely on a subdomain-registrar and bitcoin transactions. To be able to do it properly, I need to setup a local (macos) and later a ci environment for it, but I’m having a hard time doing it. I’m currently trying to run the core integration_tests using docker to have such env available, but it is not going really well. I see some network errors:

FetchError: request to http://localhost:16268/v1/namespaces/id failed, reason: connect ECONNREFUSED 127.0.0.1:16268
    at ClientRequest.<anonymous> (/src/blockstack.js/node_modules/cross-fetch/node_modules/node-fetch/lib/index.js:1393:11)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at Socket.socketErrorListener (_http_client.js:387:9)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:66:8)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
error: Could not connect to the server 127.0.0.1:18443
Make sure the bitcoind server is running and that you are connecting to the correct RPC port.

The output is really verbose, so it’s a bit hard to follow what’s happening.

While doing it, I noticed that there was a working docker-compose on the to-do tutorial that works fine for that version - https://github.com/blockstack/blockstack-todos/blob/master/docker-compose.yaml. Running on the version tagged there everything seem to work just fine.

I also noticed some places where a dev env setup was discussed. Like here: Setting up Developer Environments. And from those discussions I noticed the development mode and regtest mode on the mac application, but I couldn’t find an actual documentation of what it actually does.

All that said, I was wondering if anyone could point me in the right direction here. How can I have a working local environment to develop an application that relies on a subdomain-registrar?