1
0
planet_express_express/README.md

22 lines
301 B
Markdown
Raw Normal View History

2023-09-02 08:35:10 +02:00
# PlanetExpressExpress
2023-09-07 12:47:46 +02:00
A data driven approach for solving a shipping discount calculator.
2023-09-02 08:35:10 +02:00
2023-09-07 12:47:46 +02:00
## Setup
2023-09-02 08:35:10 +02:00
2023-09-07 12:47:46 +02:00
- Ruby 3.x
2023-09-02 08:35:10 +02:00
## Usage
2023-09-07 12:47:46 +02:00
Generating sample data
2023-09-02 08:35:10 +02:00
2023-09-07 12:47:46 +02:00
```sh
2024-09-27 20:17:31 +02:00
$ ruby bin/generate_data.rb $SAMPLE_SIZE $SHIPMENTS_PER_DAY > sample_file.txt
2023-09-07 12:47:46 +02:00
```
2023-09-02 08:35:10 +02:00
2023-09-07 12:47:46 +02:00
Run the calculator
2023-09-02 08:35:10 +02:00
2023-09-07 12:47:46 +02:00
```sh
$ ruby bin/run.rb sample_file.txt
```