Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

A simple ruby project used to teach a beginner developers about the great magic of ruby

Notifications You must be signed in to change notification settings

WomenWhoCode/FoodFinder_ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Food Finder

Food Finder is a small project created just for fun, to teach beginners Ruby

## Input and Output ##

###Input: You can add, find, add, quit

###Output:

$ ruby init.rb 

        Found restaurant file.


     <<< Welcome to food finder >>>


    This is an interactive guide to help you find the food you like.

    Actions: list, find, add, quit
    > list

                        LISTING RESTAURANTS

     Name                           Cuisine               Price
    ------------------------------------------------------------
     Chipotle                       Mexican              $25.00
     Muyabi                         Japanese             $14.00
     Olive Garden                   Italian              $50.00
     Picaros                        Spanish              $12.00
    ------------------------------------------------------------
    Sort using: 'list cuisine' or 'list by cuisine'

    Actions: list, find, add, quit

    --------------------------------------------------------------------

    Actions: list, find, add, quit
  > list by cuisine

                      LISTING RESTAURANTS

   Name                           Cuisine               Price
  ------------------------------------------------------------
   Olive Garden                   Italian              $50.00
   Muyabi                         Japanese             $14.00
   Chipotle                       Mexican              $25.00
   Picaros                        Spanish              $12.00
  ------------------------------------------------------------
  Sort using: 'list name', 'list by name', 'list cuisine', 'list by cuisine', 'list price' or 'list by price'

  Actions: list, find, add, quit
  > list by price

                      LISTING RESTAURANTS

   Name                           Cuisine               Price
  ------------------------------------------------------------
   Chipotle                       Mexican              $25.00
   Picaros                        Spanish              $12.00
   Olive Garden                   Italian              $50.00
   Muyabi                         Japanese             $14.00
  ------------------------------------------------------------
  Sort using: 'list name', 'list by name', 'list cuisine', 'list by cuisine', 'list price' or 'list by price'

  Actions: list, find, add, quit
  > list by name

                      LISTING RESTAURANTS

   Name                           Cuisine               Price
  ------------------------------------------------------------
   Chipotle                       Mexican              $25.00
   Muyabi                         Japanese             $14.00
   Olive Garden                   Italian              $50.00
   Picaros                        Spanish              $12.00
  ------------------------------------------------------------
  Sort using: 'list name', 'list by name', 'list cuisine', 'list by cuisine', 'list price' or 'list by price'

  Actions: list, find, add, quit
  >

To get started:

  1. Clone this git repo to your computer

  2. bundle install

  3. To run the program: cd FoodFinder_ruby ruby init.rb

  4. To exit: ctrol + c

Enjoy!

##Comments or feedback? please e_mail to gabriela.osu@gmail.com

About

A simple ruby project used to teach a beginner developers about the great magic of ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published