RecipeApp is a Ruby on Rails application designed for managing and searching recipes. It features robust user authentication, CRUD operations for recipes, and an advanced search functionality powered by Thinking Sphinx.
- User Authentication: Implemented with Devise for secure access.
- Advanced Search: Powered by Thinking Sphinx, supporting search by title, cuisine, category, author, and ingredients.
- Pagination: Easy navigation through recipe lists with pagination.
- Responsive Design: Styled with Tailwind CSS for a modern look and feel.
- Backend: Ruby on Rails
- Database: PostgreSQL and MySQL
- Styling: Tailwind CSS
- Testing: RSpec
- Search Engine: Thinking Sphinx
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
- Ruby version 3.3.0
- Rails version 7.0.8
- Node.js and Yarn
- PostgreSQL and/or MySQL
- Clone the repository:
git clone https://github.com/your-username/recipe-app.git- Navigate to the application directory:
cd recipe-app- Install Ruby and JavaScript dependencies:
bundle install
yarn install- Set up the database:
rails db:create db:migrate- Run the recipes importing script:
rake db:import_recipes- Start the Rails server:
rails server- Open http://localhost:3000 in your web browser.
- Running the Tests To run the test suite, use the following command:
bundle exec rspecThis command will run all the RSpec tests to ensure the application works as expected.