The code has been tested only on Ubuntu 18.04
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
- make build-docker
- make run-on-docker
-
Run all tests:
make test-with-component
-
Run only unit tests:
make test
- make start-server
- make start-client
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.