My Favourite Recipes keeps track of all your recipes, ingredients, and inventory. 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. 🧑🍳👨🍳👩🍳🧑🔬🍳🍚🍪🍕🍴
- Ruby
- PostgreSQL
- Use of Ruby on Rails framework.
- Use Ruby Gems as a software packages system
- Understand what ORM is
- Use database migration files to maintain database schema.
- Understand Rails RESTful design and router.
- Secure app from n+1 problems.
- Use validations for models.
- Set up associations between models.
- Write integration tests with capybara gem.
Follow these steps in order to run ruby code.
First, you need to ensure that you have Rails and Ruby installed on your computer.
It varies depending on your operating system so here are some links to help you install it on Windows and on Ubuntu.
For MacOS run the following commands
brew install rbenv ruby-build
# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile
# Install Ruby
rbenv install 3.0.1
rbenv global 3.0.1
ruby -v
This example shows how to install Ruby 3.0.1 which was the latest version in April 2021, but you can check to see if there is a newer version here. Iy is also assumed that you have homebrew already installed on your Mac.
Once you have ruby installed, clone this repository
To run the project, execute the following command in the terminal:
bundle install
rails server
In your preferred browser, navigate to:
http://localhost:3000
To run tests, run the following command in the terminal:
rspec
👤 Nshanji Hilary Ndzi
- GitHub: @dazehinn
- Twitter: @HilarNdzi
- LinkedIn: Linkedin
👤 Oscar Villagran
- GitHub: @oovillagran
- Twitter: @oovillagran
- LinkedIn: Oscar Villagran
The following are the future features that will be added to the project.
- Add API endpoints.
- Add images and videos section.
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project you can give us a hand by recommending either one of us to potential employers! 😉🤝
We would like to thank those who have motivated us to keep on fighting despite how tough the journey may become.
This project is MIT licensed.