Add Ruby + PostgreSQL quickstart guide
Add Ruby + PostgreSQL Quickstart Guide
๐ Description
This PR adds a comprehensive quickstart guide for Ruby (Sinatra) with PostgreSQL integration, demonstrating how to use Keploy for automated API testing with Ruby applications.
๐ฏ Changes Made
-
โ Created new quickstart documentation:
ruby-sinatra-postgres.md- Includes both Docker Compose and Local setup instructions
- Complete CRUD API examples (GET, POST, PUT, DELETE)
- Clear step-by-step Keploy record and test commands
- Follows existing documentation style and structure
-
โ Added Ruby language support to
QuickStartFilter.js- Added Ruby gem icon with official Ruby red color (#CC342D)
- Enables filtering quickstarts by Ruby language
-
โ Registered quickstart in
QuickStartList.js- Added entries for both Docker and Local environments
- Properly linked to documentation sections
-
โ Updated sidebar navigation in
version-4.0.0-sidebars.json- Added Ruby category under QuickStarts section
- Maintains consistent structure with other languages
๐ Related Repository
Sample application repository: https://github.com/Nsanjayboruds/keploy-ruby-postgresql-quickstart
โ Pre-submission Checklist
- [x] Build passes locally (
npm run buildsuccessful) - [x] Design matches existing quickstarts
- [x] Both Docker and Local setup instructions included
- [x] Follows existing code patterns
- [x] Documentation is clear and beginner-friendly
๐ธ Preview
The quickstart covers:
- Health check endpoint
- Books CRUD operations
- PostgreSQL database integration
- Keploy record/replay workflows
๐ Additional Notes
This is my first contribution to Keploy docs. Looking forward to feedback and happy to make any requested changes!
@copilot open a new pull request to apply changes based on the comments in this thread
@copilot open a new pull request to apply changes based on the comments in this thread
https://drive.google.com/file/d/1pehPFehO4WpsappZzA2OQrso6IssWa1B/view?usp=sharing
Hey @Nsanjayboruds , thanks a lot for adding the changesโreally appreciate the effort. There are a few small things that still need to be added; you can use this guide as a reference: https://github.com/keploy/docs/blob/main/ADDING_A_QUICKSTART.md
Also, if possible, could you please include a short video showcasing your changes? That would be very helpful
hey @Achanandhi-M i added a video showcasing my change
Sidebar duplicate comment Thanks for checking. I re-verified this on the latest branch state and could not reproduce a duplicate sidebar entry for this page, so no removal was needed. Resolving this thread as not reproducible on current commit.
Frontmatter keyword vs keywords Good catch, fixed. I changed frontmatter from keyword to keywords so metadata is correctly picked up. Included in the latest push.
Local flow running keploy record twice Agreed, this was ambiguous. I updated the local flow so recording stays in a single session and clarified that health verification should be run in a separate terminal. Included in the latest push.
QuickStartFilter over-formatted / large diff Agreed. I reverted formatting-only edits and restored QuickStartFilter formatting to match the existing file style, keeping this PR scoped to functional quickstart additions only.
Image filenames with spaces / trailing characters Fixed. I renamed the problematic image files to clean names (no spaces or trailing characters), updated references, and removed the old filenames from the branch.
Outstanding ADDING_A_QUICKSTART checklist + rebase request Confirmed. I addressed the checklist items for latest version quickstart integration, completed a rebase onto main, resolved conflicts, ran a successful local docs build, and pushed the updated branch. Please re-review when convenient.
Hey @Nsanjayboruds Thank you for the updates - the image filename fixes, frontmatter correction, revert of the formatting-only changes in QuickStartFilter.js, and the rebased branch are all appreciated. The demo videos are a good addition as well.
There are still a couple of things worth considering before this moves forward:
Issues to be Considered
QuickStartList.jsversion awareness
This has been flagged twice and has not been structurally resolved. QuickStartList.js is a shared component used across all documentation versions. The two new Ruby entries link to /docs/quickstart/samples-ruby/ which only exists in version-4.0.0. On older versioned docs these cards will appear in the UI but the links will lead to a 404. Please either make the list version-aware or add the Ruby quickstart docs to all supported versions.
- Duplicate sidebar entry
The diff for version-4.0.0-sidebars.json shows a standalone keploy-cloud/cloud-installation entry being added outside the Installation category where it already exists. This will create a duplicate entry in the sidebar navigation. Please remove the extra standalone entry.
- Sample app on a personal repository
The guide currently references a personal GitHub repository for the sample app. For long-term maintainability it would be better to have this hosted under the official Keploy org so the link remains stable regardless of what happens to the your personal account. Once the review is done and we are good to go, we can push these changes to a repo in the Keploy org once we have discussed this internally with the team.
Hi @amaan-bhati, thanks for the detailed follow-up. I have addressed all 3 points:
1.made Ruby quickstart entries version-safe in QuickStartList, 2.removed the duplicate cloud-installation sidebar entry, 3.replaced the personal sample-repo URL with the official Keploy org repo URL. I also re-ran the docs build successfully. Please re-review when you have time.
hey @dhananjay6561 ,I have applied all review suggestions made by copilot please review it again when have time thank you
hi @Nsanjayboruds copilot reviews are done, now i will review it manually. i will get back to you soon. Thank you.
Reviewed this PR. No blocking issues from my side. The docs integration looks correct and the local docs build passes. Now verifying the Docker/local quickstart flow separately.
@Nsanjayboruds I see some merge conflicts, can you please resolve them.
@Nsanjayboruds please resolve the copilot comments
hey @dhananjay6561 i resolved all copilot comment
@Nsanjayboruds please resolve further.
@dhananjay6561 i relsoved it
@Nsanjayboruds there are merge conflicts.
@dhananjay6561 i resloved the merge conflicts.
@Nsanjayboruds got it. let me test the end to end flow of this quickstart. I will get back to you soon.
@Nsanjayboruds The clone URL https://github.com/keploy/keploy-ruby-postgresql-quickstart.git returns a 404, this repo doesn't exist in the keploy org yet. COuld you please check on this?