A Ruby app that creates Category and Recipe classes.
Assuming that you have Ruby installed in the terminal:
test_category = Teacher.new("German")
test_recipe = Student.new("Pasta")
test_recipe.destroy => deletes recipe from the database
Testing the Ruby methods and specs can be done through RSpec.
gem install rspec
rspec
Viewing the app can be done through Sinatra.
Run in the terminal:
ruby app.rb
in the project folder
All inputted data is saved in the recipe_box
database.
The recipe_box
database is comprised of categories
, recipes
, and periods
tables.
The categories
table is comprised of name
, id
, and timestamp
columns.
The recipes
table is comprised of name
, id
, and timestamp
columns.
MIT License, copyright 2015. George Denkey - Iman Mafi