Rails-cook-book
The Rails cook book app keeps track of all your recipes and ingredients for the recipe. It will allow you to save ingredients, keep track of what you have, create recipes, and generate a shopping list based on what you have and what you are missing from a recipe. Also, since sharing recipes is an important part of cooking the app should allow you to make them public so anyone can access them.
Preview
Getting Started
To get a local copy up and running follow these simple steps.
- Clone the repo
git clone https://github.com/your_username_/Project-Name.git
- Goto project directory
cd recipe-app
- Configure Database
change the .env credentials with your postgres username and password run rails db:reset
- Run app
rails server
rails s
Testing
bundle exec rspec
will run all the tests.
This project was built with
-
Ruby on Rails
-
PostgreSQL
-
Bootstrap CSS Framework
Author 1
- GitHub: Ben Kiarie
- Twitter: Optimize
- LinkedIn: Ben Kiarie
Author 2
- GitHub: @EzekielUtshudi
- Twitter: @UtshudiEzekiel
- LinkedIn: @ezekiel-utshudi
🤝
Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Show your support
Give a
Acknowledgement
- Hat tip to anyone whose code was a source of inspiration.
- Theme Wagon Bootsrap template
📝
License
This project is MIT licensed.
RoR group project: set up your Kanban board
In this first milestone, our group was able to:
Our group consists of 2 members and we are:
The Link to our project is Rails Cook Book
Thank you for taking the time to review this Issue 🙏
Rails-cook Book version 1
Hello Reviewer 👋 , thank you for taking the time to review our PR.
What does this PR do?
Food list:
Recipes list:
Public recipe list:
Recipe details:**
General shopping list view :
We made sure there are no N+1 queries happening.
We worked in a group of two:
@Benmuiruri and @EzekielUtshudi
Thanks for your time and effort to review our code ,
Final touches
Hello @EzekielUtshudi :wave: , thank you for taking the time to review my PR.
What does this PR do?
:heavy_check_mark: Check and fix N+1 query issues :heavy_check_mark: Authenticate only recipe creator can see delete button :heavy_check_mark: Authenticate only recipe creator can see generate shopping list button :heavy_check_mark: Excempt public_recipes from authentication :heavy_check_mark: Install
font awesome
gem and import it inapplication.css.scss
:heavy_check_mark: Add patch route for recipe :heavy_check_mark: Add update action inrecipe
controller :heavy_check_mark: Add font awesome toggle button in recipe show pageHow should it be tested
git checkout final-touches
-install gemsbundle install
rails s
Thanks for your time and effort to review my code.
Optimization using bullet gem
Hello @EzekielUtshudi :wave: , thank you for taking the time to review my PR.
What does this PR do?
:heavy_check_mark: Install Bullet gem and check for unoptimized queries :heavy_check_mark: Center header and add margin top in food index page
How should it be tested
git checkout optimization
-install gemsbundle install
rails s
Thanks for your time and effort to review my code.
Tests
Hey @Benmuiruri In this milestone we have added the following :
**ENJOY REVIEWING OUR WORK OF @Benmuiruri AND @EzekielUtshudi **
Shopping list
Hey, @Benmuiruri in this PR I Implemented the following 👍
Update Main Index landing page
Blog app - creating data model
Hello @EzekielUtshudi :wave: , thank you for taking the time to review my PR.
What does this PR do?
:heavy_check_mark: Create seed.rb file with data to quickly populate the database :heavy_check_mark: Add toggle icon in recipe show page :heavy_check_mark: Add carousel of 3 recipes in main index page :heavy_check_mark: Add video section in main index page :heavy_check_mark: Add footer
How should it be tested
git checkout root-page
-install gemsbundle install
rails s
Thanks for your time and effort to review my code.
Testing food
Add recipe foods feature
Blog app - creating data model
Hello @EzekielUtshudi :wave: , thank you for taking the time to review my PR.
What does this PR do?
:heavy_check_mark: Add delete button in recipe show view :heavy_check_mark: Update navlinks in header :heavy_check_mark: Add button to add recipe in recipes index view :heavy_check_mark: Add link to foods in header :heavy_check_mark: Add header and callout image in food index view :heavy_check_mark: Add validations for recipe model :heavy_check_mark: Add RecipeFoods controller :heavy_check_mark: Add form to add foods to a recipe :heavy_check_mark: Add table to display foods associated with a recipe
How should it be tested
git checkout recipe-foods
-install gemsbundle install
rails s
Thanks for your time and effort to review my code.
Food-controllers
### Hey reviewer I have done the following in this PR :
Add Recipe Feature
Blog app - creating data model
Hello @EzekielUtshudi :wave: , thank you for taking the time to review my PR.
What does this PR do?
:heavy_check_mark: Added recipe index action and view :heavy_check_mark: Added new stylesheets for styling :heavy_check_mark: Added a callout image in the main index view :heavy_check_mark: Added a callout image in the post index view :heavy_check_mark: Added a callout image in the post show view :heavy_check_mark: Added a form to create a new Recipe :heavy_check_mark: Added create action to handle form and add new recipe in database :heavy_check_mark: Update navbar links
How should it be tested
git checkout recipe
-install gemsbundle install
rails s
Thanks for your time and effort to review my code.