GithubHelp home page GithubHelp logo

priceproductondate's Introduction

PriceProductOnDate

Microservice to consult prices

Build Status Coverage Status

How to start

To run the microservice you must first make sure that your port 8080 is not in use. Then navigate in the console to the project folder and launch the following command.

$mvn clean install && docker-compose up

JUnit and Coverage report

After executing the command indicated in the previous section, all the tests will have been executed and the coverage report generated. However, if we wish to generate it again, we would only have to use the following command.

$mvn verify

To access the coverage report you only have to access the folder

./target/site/jacoco/index.html

and open the file index.html with the browser of your preference.
alt text

Swagger

You can consult the swagger in http://localhost:8080/swagger-ui.html , the file "swagger.json" or in SwaggerHub https://app.swaggerhub.com/apis/fernandoris/PriceProductOnDate/1.0.0

Tests

Once the microservice is up, to run the tests you can import the postman collection in the file PriceProductOndate.postman_collection.json or execute the following commands in the console

Test 1.

curl --location --request GET 'http://localhost:8080/prices?date=2020-06-14-10.00.34&productId=35455&brandId=1'

Test 2.

curl --location --request GET 'http://localhost:8080/prices?date=2020-06-14-16.00.34&productId=35455&brandId=1'

Test 3.

curl --location --request GET 'http://localhost:8080/prices?date=2020-06-14-21.00.34&productId=35455&brandId=1'

Test 4.

curl --location --request GET 'http://localhost:8080/prices?date=2020-06-15-10.00.34&productId=35455&brandId=1'

Test 5.

curl --location --request GET 'http://localhost:8080/prices?date=2020-06-16-21.00.34&productId=35455&brandId=1'

priceproductondate's People

Contributors

fernandoris 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.