Coder Social home page Coder Social logo

tax-calculator's Introduction

tax-calculator

Simple Tax Calculator using Spring Boot MySQL Docker Compose

Things to do to run without Docker (locally):

  1. Clone this project by this command : git clone https://github.com/hendisantika/tax-calculator.git
  2. Go to folder --> cd tax-calculator
  3. If the MySQL container is not up and running, you need to run it now.
  4. Change application.properties based on your mysql username & password.
  5. Run this project with Maven Wrapper --> ./mvnw clean spring-boot:run
  6. Open Swagger UI Dashboard on this link http://localhost:8080/swagger-ui.html and see the following screen shot:

Swagger UI

For the first time request just add the tax json request :

First Tax Request

For next request We need requestId to differentiate whose session user is this and whose item list is this.

Second Tax Request

Third Tax Request

Get All Tax List

Get All Tax List

Things to do to run with Docker Compose :

  1. Building the docker image from project

    first you need to build the application. This can be done with following command

    ./mvnw clean install

  2. Once the project is buit successfully, we can build the docker image with following command.

    docker-compose up

  3. Open Swagger UI Dashboard on this link http://localhost:8087/swagger-ui.html and see the following screen shot:

    Swagger UI

  4. For the first time request just add the tax json request :

    First Tax Request

  5. For next request We need requestId to differentiate whose session user is this and whose item list is this.

    Second Tax Request

    Third Tax Request

  6. Get All Tax List

    Get All Tax List

Sample JSON Request :

{
	"name" : "Lucky Stretch",
	"taxCode" : 2,
	"price" : 1000
}

{
	"name" : "Big Mac",
	"taxCode" : 1,
	"price" : 1000
}

{
	"name" : "Movie",
	"taxCode" : 3,
	"price" : 150
}

tax-calculator's People

Contributors

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