The Webapp
exposes REST-API through which an user can gather information about:
- number of available CPUs for app
- number of IPv4 addresses and name of interfaces to which these IPs have assigned
- current date
- current time
In order to deploy and to try 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 up
and 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;
done
and watch the output
- Once it's done, to remove the VM, the command is helpful:
vagrant destroy default