Skip to content

ybakhan/fiber-postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tax Calculator Assignment

REST API for calculating taxes

Build

To build the project, run the following command:

make build

Binary is /bin/taxcalculator

Unit Test

To run unit tests, run the following command:

make test

Code Coverage

To see code coverage of unit test, run the following command:

make coverage

Detailed report of coverage is coverage.html

Integration Test

To run integration tests, run the following command:

make testIT

Run Tax Calculator

To run tax calculator, run the following command:

make run

To get taxes for a year and salary call the following api

http://localhost:8080/tax/{year}?s={salary}

e.g To get taxes for year 2022 and salary 80000 call

http://localhost:8080/tax/2022?s=80000

Swagger Documentation

To update swagger documentation, run the following command:

make swagger

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published