microservice_go_ansible

command
v0.0.0-...-d7ce89a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 5 Imported by: 0

README

Microservice Calculator in Golang using Vagrant and Ansible

Instructions

  • You need install the Vagrant.
  • With the Vagrant installed, access the project directory.
  • To start the service, start the Vagrant using the following command:
   vagrant up
  • The service will be available in:
    http://55.55.55.5:8080/
  • If you wish to stop the service, type the following command:
   vagrant halt
Available Endpoints
Sum
    http://55.55.55.5:8080/calc/sum/{firstNumber}/{secondNumber}
Sub
    http://55.55.55.5:8080/calc/sub/{firstNumber}/{secondNumber}
Div
    http://55.55.55.5:8080/calc/div/{firstNumber}/{secondNumber}
Mult
    http://55.55.55.5:8080/calc/mult/{firstNumber}/{secondNumber}
History
    http://55.55.55.5:8080/calc/history
  • firstNumber matches the first number to be calculated

  • secondNumber matches the second number to be calculated

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL