Fix error running without any clients defined
The soar bus crashes if the data/clients.json file is missing. This file is created by the api when the first client is created.
Options:
- Catch the FileNotFoundError and default to an empty object in the soar_bus like it does in the API
- Create a default
adminclient the first time the API is started
I'm tempted to do both.
-
Catch FileNotFoundError for
./data/clients.jsonin soar bus -
Create a default
adminclient the first time the API is run -
Test running
run-compose.shfrom a fresh clone