Before beginning see prerequisites.
sh build.sh
./build/CppUserAPI
docker build -t cppuserapi .
docker run -d -it --name cppuserapi_test -p 3000:3000 cppuserapi
With Httpie (or Postman)
http get "http://localhost:3000/health"
[server]
concurrency = 4
port = 3000
[services]
randomuser_limit = 1000
randomuser_host = "randomuser.me"
randomuser_port = "443"
randomuser_path_api = "/api"
Increase this to the number of available cores - 4 is the sweet spot for M1 Max
Host port - remember to update the Dockerfile exposed port if this changes (see Dockerfile)
Defaulted to randomuser.me
public website is using TLS 443
Current max limit is 1000 retrieval. Affects the query string parameter "count". e.g http://localhost:3000/user?count=1000
this is the default route for randomuser.me e.g. https://randomuser.me/api