The Webapp exposes REST-API through which an user can gather information about:
- number of available CPUs for app (
/cpupath) - number of IPv4 addresses and name of interfaces to which these IPs have assigned (
/ippath) - current date (
/datepath) - current time (
/timepath)
It's supposed that this app will have implementations in few languages. Currently there are following language implementation:
To deploy and for trying it, a number of steps have to be done:
- Install VirtualBox and Vagrant environments for Linux
- Clone this repository from shell
- Go to the cloned repository directory, launch command
vagrant upand wait until the machine will be provisioned - Invoke the commands:
for item in cpu ip date time; do
echo "Requesting of item $item: ";
curl -s -L --insecure http://localhost:8080/$item | python -m json.tool;
doneand watch the output
- Once it's done, to remove the VM, the command is helpful:
vagrant destroy default