Introducing the Recipe App: Your all-in-one solution for effortless cooking! Seamlessly organize your recipes, ingredients, and pantry items. Craft delicious recipes with ease, generate smart shopping lists, and even share your culinary creations with the world. Cooking has never been this convenient – simplify your kitchen adventures with our Recipe app!
ruby -v
If Ruby is not installed, you can download and install it from the official Ruby website.
rails -v
If Rails is not installed, you can install it using the following command:
gem install rails
cd /home/user/name-of-your-directory
Clone the project using one of the options.
Using SSH-key:
git clone git@github.com:Jrmcuervo/RoR-group-project.git
Using HTTPS:
git clone https://github.com/Jrmcuervo/RoR-group-project.git
You can also create the new directory just adding the name of it in the end of command. For example:
git clone https://github.com/Jrmcuervo/RoR-group-project.git recipe-app
To run this project locally, follow these steps:
Open your terminal or command prompt.
Navigate to the directory where you have cloned or downloaded the Ultimate Recipe Assistant repository.
Run the following command to install any required dependencies:
bundle install
Once the setup is complete, ensure you are still in the directory containing the Ultimate Recipe Assistant files.
To set up the database and seed initial data, run the following commands:
rails db:create
rails db:migrate
This will create the database and apply migrations.
If you want to populate the database you can run (this step is not required):
rails db:seed
rails assets:precompile
Precompiling assets is essential for improved performance and loading times in a production environment.
rails server
The app will be accessible at http://localhost:3000
in your web browser.
If you encounter any issues with the email verification process, please refer to the Devise documentation or seek assistance from the Devise community.
If you have future features like GUI or interactive mode, follow the specific instructions provided for those features in the app's documentation.
If you encounter any issues related to missing assets or unexpected behavior after making changes, try the following steps:
tmp
directory located in the root of your project:rm -rf tmp/
This can help clear any cached data that might be causing issues.
public/assets
directory:rm -rf public/assets/
This ensures that any previously precompiled assets are removed, and new ones will be generated during the next precompilation.
If you encounter any problems related to data or database inconsistencies, you can follow these steps to reset your database:
Ensure Server/Process Shutdown: Make sure that your Rails server or any related processes are not running. You should not have any active connections to the database.
Drop the Database:
rake db:drop
or
rails db:drop
After dropping the database, you can recreate it from scratch. Run migrations to set up the schema.
If problems persist, you can refer to the official Ruby on Rails Guides for more troubleshooting tips and guidance.
To run the tests for the Ultimate Recipe Assistant requests and models, ensure you are in the directory containing the test files.
Find your gemfile and add the RSpec gem in the development, test group:
group :development, :test do
gem 'rspec-rails'
end
bundle install
rails generate rspec:install
rspec spec/models
rspec spec/models/food.rb
👤 steven wafeek
👤 Ruben Cuervo
I welcome contributions to enhance the functionality and user experience of the Ultimate Recipe Assistant Application. If you have any ideas, suggestions, or bug reports, feel free to open an issue or submit a pull request. Let's share ideas!
If you'd like to contribute to this project, please follow these steps:
Please adhere to the coding conventions and guidelines specified in the project.
Feel free to check the issues page.
If you encounter any issues or have any questions or suggestions, please open an issue on the issue tracker. Furthermore, if you would like to get in touch with me, you can find our contact information in the Authors section.
Ruby official : Special thanks to Yukihiro Matsumoto, the creator of the Ruby programming language, for giving me this powerful and elegant tool to build amazing applications. I am also grateful to the Ruby Core Team and the passionate Ruby community for their continuous support and contributions.
Ruby on Rails: A big thank you to the creators, contributors, and maintainers of the Ruby on Rails framework. Your efforts have empowered countless developers to build powerful and scalable web applications.
This project is MIT licensed.gre