A GraphQL API built with Ruby on Rails that provides a robust and flexible interface for managing recipes and related data.
This application serves as a backend API that exposes a GraphQL endpoint, allowing clients to efficiently query and mutate recipe-related data. The API is designed to be performant, maintainable, and follows best practices for GraphQL implementations.
- Ruby on Rails 8.0.2: Web framework
- GraphQL 2.4: Query language for APIs
- MySQL: Database (via mysql2 gem)
- Rubocop: Code style enforcement
- Ruby 3.2.2 (recommended, specified in .ruby-version)
- MySQL
- Rbenv (optional, for managing Ruby versions)
- Clone the repository:
git clone https://github.com/ImMPrada/recipes.git
cd recipes- Install dependencies:
bundle install- Set up the database:
rails db:create db:migrate- Start the server:
rails serverThe application will be available at http://localhost:3000
Access the GraphQL playground at http://localhost:3000/graphiql to explore and test the API.
For a more robust GraphQL testing experience, you can use Altair GraphQL Client: official website
- Open Altair
- Set the URL to
http://localhost:3000/graphql - Start making queries!
This project is licensed under the MIT License - see the LICENSE file for details.