Code Monkey home page Code Monkey logo

fruit-stands-test's Introduction

fruit-stands-test

Fruit stands test is a Spring Boot application.

To build it and run it you need Apache Maven and a JDK (at least version 11).

Build and run

Build the project by running:
mvn clean install

Run the application by executing:
mvn spring-boot:run

Scenarios

There is a REST endpoint for each of the test scenarios. Calling an endpoint will create the new scenario (customers, stands and fruit baskets) and execute the scenario. That is, calculate and print out the results of the scenarios.

Endpoints

While you are running the application locally you can reach the endpoints here:

Extensions 1 and 2 are together because they are functionally the same.
These endpoints are reactive; they use an internet protocol called JSON streaming to gradually print the setup and results on a web page. Reach the endpoints from any browser or curl from a command line.

Configuration

It's possible to configure the behaviour of this application by changing the values in application.yml under the resources folder.
For example it's possible to change the maximum price of the fruit baskets and the number of stands the friends encounter along the way.

Known limitations

Because of a limitation of the reactive framework used, the maximum number of stands supported is 23. This can be worked around by rewriting the code that prints the events in the scenarios, but it's outside the scope and purpose of this test.

fruit-stands-test's People

Contributors

andyvalerio avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.