Skip to content
This repository has been archived by the owner on Oct 7, 2019. It is now read-only.

Latest commit

 

History

History
47 lines (29 loc) · 1.24 KB

File metadata and controls

47 lines (29 loc) · 1.24 KB

SRECon Workshop App Bundle

This repository holds an example application that is used to learn the basic concepts of OpenTracing.

The application itself is a web application with a form to add a product (represented by SKU) to the cart.

It is self contained and provides an additional remote API to itself:

  • A Cart API on port :8085
  • The web application runs on port :8087.

Running the application

Golang version

Change current folder to golang.

$ go build -o ot101 ./... && AVAILABILITY_ZONE=<insert AZ value here> INSTANCE_ID=<insert a value here to identify your instance> ./ot101

Java Version

Change current folder to java.

$ mvn spring-boot:run

Docker

In each folder you can find make tasks to help you build and run application:

$ make docker.run

And then point your browser at http://localhost:8087

Add to cart form

You have to enter a string as the SKU to add to the cart and press submit. If there's enough stock you'll get a success message or a failure message otherwise. The stock availability is randomized and can be 0.