-> Your virtual bartender <-
Computender is a CLI application that allows users to create an account, search for drinks through a variety of methods, and save their favorite drinks. If you're feeling brave, try the random drink generator! :)
- Ruby - version 2.6.6
- ActiveRecord - version 6.0
- Sinatra
- Sinatra-ActiveRecord
- SQLite3
To run CompuTender, fork and clone this GitHub repository. Then run:
bundle install rake db:migrate rake db:seed
def save_to_favorites drink
system('clear')
header
your_favorite_drinks_names = $current_user.favorite_drinks.map{|drink| drink.name}
if your_favorite_drinks_names.include?(drink.name)
$prompt.select("The #{drink.name} is already in your favorites list!", ['Return to Main Menu'])
else
Favorite.create(user: $current_user, drink: drink)
$prompt.select("The #{drink.name} has been added to your favorites list!", ['Return to Main Menu'])
end
end
- Search for drinks by name, primary liquor, or keyword
- See the ingredient lists for drinks
- Generate a random drink recommendation
- Create, access, and update a list of favorite drinks
This project is currently finished. We may introduce new features (e.g. making requests to an external API) or refactor existing code going forward.
We built CompuTender as our Mod 1 CLI app project. Being the cocktail enthusiasts we are, we designed this app to be the perfect companion after a long day at coding bootcamp.
CompuTender was created by Chris Follen, Jamon Dixon, and Steven Yi
Feel free to reach out!