Just a quick tip…if you are trying to rackup an API-Mock-Server and you get either of these errors:
"Could not connect to any node", "Could not connect to any secondary or primary nodes"
The chances are that you’ve forgotten to start mongodb! So start it up:
brew services start mongodb
Note this assumes that you’ve installed mongodb with brew.