The Recipe app 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.The Recipe app 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.
- Ruby on Rails
- rubocop
- stylelint
- Ruby Gems
- Ruby ~3.1.0
- PostgreSQL ~12.9
- Node.js ~14.17.6
- Yarn ~1.22.17
To get a local copy of this project:
Clone this repository or download the Zip folder:
$ git clone git@github.com:KDlamini/mindly.git
Then:
$ cd recipe-app
$ gem install bundler
$ bundle install
To start App:
$ rails server
To view on browser:
http://localhost:3000
Create a Postgres user:
$ su - postgres
After that access Postgres:
psql
Then create a user (or a “role”, as Postgres calls it):
CREATE ROLE recipe WITH CREATEDB LOGIN PASSWORD 'recipe';
Initialize the database:
$ bin/rails db:setup
Migrate the database:
$ bin/rails db:create
Default: Run all spec files (i.e., those matching spec/**/*_spec.rb):
$ bundle exec rspec
Run all spec files in a single directory (recursively):
$ bundle exec rspec spec/models
Run a single spec file:
$ bundle exec rspec spec/controllers/accounts_controller_spec.rb
Run a single example from a spec file (by line number):
$ bundle exec rspec spec/controllers/accounts_controller_spec.rb:8
See all options for running specs:
$ bundle exec rspec --help
$ bin/rails test
Track Ruby linter errors run:
$ rubocop
To auto-correct correctable Rubocop offenses run:
$ rubocop --auto-correct-all | rubocop -A
👤 Simo Nkosi
- GitHub: @KDlamini
- Twitter: @RealSimoNkosi
- LinkedIn: LinkedIn
👤 Okpara Tochukwu
- GitHub: @xtrahuman
- LinkedIn: LinkedIn
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- This project is part module 5 in the Microverse study program.
- Thanks to the Microverse team for the great curriculum.
- Thanks to Code Reviewers for the insightful feedback.
- A great thanks to My coding partners, morning session team, and standup team Partners for their contributions.
This project is MIT licensed.