Change app config code to allow for a defaults config file and files that override defaults.
Add docker-compose for rest and ui.
Do you have any concerns with this PR? No
How can the reviewer verify this PR?
Add an .hjson file with a few properties to override defaults. Load in by using the NODE_ENV environment variable. For instance, NODE_ENV=foo loads /config/foo.hjson. Log in app.
Default config values are still loaded, but overwritten by foo.
Any background context you want to provide?
Moved some documentation to the docs site and added links to it, to keep docs in one place.
The files docker-compose.rest.yml and docker-compose.ui.yml are meant to be used together with docker-compose.loraserver.yml. For instance, when developing the REST server, use this to run the lora servers and the ui:
docker-compose -f docker/docker-compose.loraserver.yml -f docker/docker-compose.ui.yml up
When developing the web client, use this to run the lora servers and the REST server:
docker-compose -f docker/docker-compose.loraserver.yml -f docker/docker-compose.rest.yml up
Screenshots or logs (if appropriate)
Questions:
Have you connected this PR to the issue it resolves? #214
Does the documentation need an update? Yes, included.
Does this add new dependencies? No
Have you added unit or functional tests for this PR? No
What does this PR do?
Do you have any concerns with this PR? No
How can the reviewer verify this PR?
Add an
.hjson
file with a few properties to override defaults. Load in by using the NODE_ENV environment variable. For instance, NODE_ENV=foo loads/config/foo.hjson
. Log in app. Default config values are still loaded, but overwritten by foo.Any background context you want to provide?
Moved some documentation to the docs site and added links to it, to keep docs in one place.
The files
docker-compose.rest.yml
anddocker-compose.ui.yml
are meant to be used together withdocker-compose.loraserver.yml
. For instance, when developing the REST server, use this to run the lora servers and the ui:When developing the web client, use this to run the lora servers and the REST server:
Screenshots or logs (if appropriate)
Questions: