Tiny server to agree on spacing values
This server is meant to be developed using docker. Since a couple of
environment variables need to be exported, the docker-compose commands are
wrapped in the compose.sh script, that is used for example in this way:
bash compose.sh upBy default compose.sh runs the compose-dev.yaml file, meant for
development. In order to execute the other setup, the E flag can be used.
Its argument selects the other compose-*.yaml file that overrides the
development one. The following commands use the production and testing
configuration respectively:
bash compose.sh -E prod build # builds the production images
bash compose.sh -E test down # tears down the testing containers- Development: Uses standard
amd64architecture docker images, and runs the server with nodemon to watch the code. - Production: Uses
armv7docker images, and runs the server with standardnode. - Test: Same as development, but runs the tests instead of the server.