This project demonstrates a text-based command system to generate a receipt implemented in Ruby. It includes two classes, Base
and Main
, within the Command
module, which allow users to select and execute commands from a menu of options.
Requirements based on these challenges
- Displays a menu of options to the user.
- Accepts user text input to select commands.
- Executes commands based on user input.
- Includes example commands: "Generate a receipt with new products in the basket" and "Generate a random receipt."
Before running the project, make sure you have the following:
- Ruby installed (version 3.1.2).
-
Clone this repository to your local machine:
git clone https://github.com/denysnando/receipt
-
Setup
cd receipt/ ./bin/setup
./bin/shop
rspec
- By adding a validation system inside the models;
- Add the simple coverage gem
- Implement new exceptions and errors