Skip to content

arshvin/test-task

Repository files navigation

Example of test Webapp and its deploy.

Purpose

The Webapp exposes REST-API through which an user can gather information about:

  1. number of available CPUs for app
  2. number of IPv4 addresses and name of interfaces to which these IPs have assigned
  3. current date
  4. current time

How to use it

In order to deploy and to try it, a number of steps have to be done:

  1. Install VirtualBox and Vagrant environments for Linux
  2. Clone this repository from shell
  3. Go to the cloned repository directory, launch command vagrant up and wait until the machine will be provisioned
  4. 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

  1. Once it's done, to remove the VM, the command is helpful:
vagrant destroy default

About

Interview task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published