An open API service indexing awesome lists of open source software.

https://github.com/sirius248/sales_tax


https://github.com/sirius248/sales_tax

ruby

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# Sales Tax

[![Code Climate](https://codeclimate.com/github/kimquy/sales_tax/badges/gpa.svg)](https://codeclimate.com/github/kimquy/sales_tax)

[![Build Status](https://travis-ci.org/kimquy/sales_tax.svg?branch=master)](https://travis-ci.org/kimquy/sales_tax)

## Usage

Clone this github repo to local. Then go to that repo working directory.

Run the following command in the terminal

```ruby
ruby app.rb file_path

# Example
ruby app.rb ./sample_data/1.txt
```

## Unit Test

```
bunlde exec rspec
```

## Sample output

![sample output](https://user-images.githubusercontent.com/2282642/30639397-df271b1a-9e28-11e7-9e3b-27357c8aac29.png)

## Improvement

* Right now the way to check for type of product is very static. It's base on only small amount of static inputs.