This command-line program take two arguments:
- JSON file representing a cart(cartlist)
- JSON file representing a list of base prices(price catalog)
and calculates the price of the total cart and outputs the values in cents.
- Git clone the project into the appropriate directory
- Run
cd price_cart_program/
- Install the required gems running the line
bundle install
in the top directory - Run
ruby redbubble_system_command.rb [full_path_to_the_cart_json_file] [full_path_to_the_base_prices_list_json_file]
ruby redbubble_system_command.rb /home/greenteamuimui/Job_Search/code_challenges/price_cart_program/spec/json_examples/cart-4560.json /home/greenteamuimui/Job_Search/code_challenges/price_cart_program/spec/json_examples/base-prices.json
- Run
rspec spec/