Skip to content

This Ruby app generates a beer-pairing app for food using beers from punkapi.

License

Notifications You must be signed in to change notification settings

tmtarpinian/beer_pairing_app

Repository files navigation

Project Image

Beer-Pairing App for Food

Fetches beers from PunkAPI that pair with your food.

Build Status issues badge Coverage license badge

Table of Contents


Summary

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.


Dependencies

The following requirements are necessary to run these files:

  • Ruby ~>2.7.0
  • Open-URI
  • json
  • Colorize gem

Ruby

This app is written with Ruby and requires Ruby version ~>2.6.1 to be installed on the operating system executing the program.

Changing_Versions

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

Installing_Versions

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.

Open-URI

net/http Documentation

JSON

json Documentation

Colorize

Finally, the app uses the Colorize gem.

To install, in your terminal, run gem install colorize. Find the Colorize documentation here


Run

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. clone repo

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: prompt repo

To close the program, type the word exit


Acknowledgements

I would like to thank PunkAPI.com for allowing public access to their API and for the extensive information they provide.

Please check out their API.

Photo credit: Timothy Dykes


Contributing

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.


License

The gem is available as open source under the terms of the MIT License.


Maintainer(s)

tmtarpinian
@tmtarpinian

Conduct

Everyone interacting in the Beer-Pairing App’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

This Ruby app generates a beer-pairing app for food using beers from punkapi.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages