- Ruby version
- Ruby on Rails v5.1.3
- System dependencies
- postgreSQL v9.6.3
- Gems used
- bootstrap-sass - Bootstrap styling
- simple_form - Easy creation of simple forms
- cocoon - Create nested forms (the ingredients & steps)
- paperclip - For adding the images
After cloning you will need to create, and then initialize, the database
- Create the database;
- At the command line in the cloned directory run
rails db:create
- Initialize the database;
- At the command line in the cloned directory run
rake db:migrate
- To run the test suites
- For the models tests run
ruby -Itest test/models/recipe_test.rb
- Remove
.haml
gem, make all views.erb
- Enhance: Add ability for users to register (sign up and/or then sign in)
- Non registered users can see recipes
- Registered users can edit/delete recipes they've created (after signing in)
- Enhance: Hide recipe id's in the URL (look into is_sluggable and/or the friendly_id gem)
- Enhance: Add ability to search by ingredients
- Enhance: Refactor to add a generic landing page that allows users to select the list of recipes based on whether it's an Entree, Soups/Stews, Bread, Dessert, etc.
- Enhance: Don't display 'Back', 'Edit' and 'Delete' buttons when printing a recipe
- Figure out why running the tests wipes out everything in the db
- I did not clone Mackenzie's repo. I did a code along with his youtube video and then made my modifications.