Fetches beers from PunkAPI that pair with your food.
This program was created to help people find beers that pair with food they currently have in the house or on their grocery list.
By choosing a food, the app will find beers that pair with that food. The beers will also provide descriptions of meals you can create from those foods, giving you not only beer ideas but dinner ideas as well.
With this instant knowledge on hand, you'll soon be creating remarkable beer pairings that excites your normal meal routine and impresses any guest.
The following requirements are necessary to run these files:
- Ruby ~>2.7.0
- Open-URI
- json
- Colorize gem
This app is written with Ruby and requires Ruby version ~>2.6.1 to be installed on the operating system executing the program.
If Ruby is installed on your system, verify the currently used version with the command ruby -v
You can list all installed Ruby versions on your machine with rvm list
Changing the currently used version of Ruby to a version ~>2.7.0 can be achieved with the command rvm use 2.7.0
(or your specified version).
Running rvm list
again will confirm that that version is the current
If you do not have a version of Ruby version ~>2.7.0 on your machine you, can obtain it by running rvm install 2.7.0
.
This installation requires Ruby Version Manager
(RVM). If RVM is not installed on your machine, that can be downloaded and installed with the following command:
curl -sSL https://get.rvm.io | bash
When RVM is installed, run rvm reload
or close and reopen your terminal to make sure RVM is fully loaded. Next, install the Ruby version ~>2.6.1 with the subsequent commands:
rvm install 2.7.0
rvm use 2.7.0
Please see the Ruby installation instructions for further information about installing RVM or a Ruby verion on your machine.
Finally, the app uses the Colorize gem.
To install, in your terminal, run gem install colorize
.
Find the Colorize documentation here
To run any of the files, visit the file's repo on Github.
From there, download a zipped copy of the repo files or use its web url to clone.
Please have ruby and the above gem dependencies installed prior to running this application (see dependencies above)
After unzipping and saving the contents to the desired directory (or using git clone
to clone the repo in your terminal), change directories to the directory containing the copy of the repo.
From within that directory, run the following command in your terminal:
ruby ./bin/beer_pairing
The program will run and prompt the user for input with the following message:
To close the program, type the word exit
I would like to thank PunkAPI.com for allowing public access to their API and for the extensive information they provide.
Photo credit: Timothy Dykes
Bug reports and pull requests are welcome on GitHub at https://github.com/ferrisbueller66/beer_pairing_app. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
@tmtarpinian |
Everyone interacting in the Beer-Pairing App’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.