Client mode local allows you to type commands to request quotes from the server, where docker mode sends one quote and that's it.
If you start the application without docker you can specify CLIENT_MODE
export CLIENT_MODE=local
OR
export CLIENT_MODE=docker
Run in docker
make build-docker
make run-on-docker
Testing
Run all tests:
make test-with-component
Run only unit tests:
make test
Other Makefile commands
make start-server
make start-client
PoW
I choose to work with CPU-bound function - hashcash.
I could find most documentation about this pow scheme and
it was perfect for the task requirements.