docs icon indicating copy to clipboard operation
docs copied to clipboard

Add Ruby + PostgreSQL quickstart guide

Open Nsanjayboruds opened this issue 10 months ago โ€ข 27 comments

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 build successful)
  • [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!

Nsanjayboruds avatar Jan 29 '26 08:01 Nsanjayboruds

@copilot open a new pull request to apply changes based on the comments in this thread

Nsanjayboruds avatar Jan 30 '26 02:01 Nsanjayboruds

@copilot open a new pull request to apply changes based on the comments in this thread

Nsanjayboruds avatar Jan 30 '26 03:01 Nsanjayboruds

https://drive.google.com/file/d/1pehPFehO4WpsappZzA2OQrso6IssWa1B/view?usp=sharing

Nsanjayboruds avatar Feb 02 '26 12:02 Nsanjayboruds

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

Nsanjayboruds avatar Feb 02 '26 12:02 Nsanjayboruds

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.

Nsanjayboruds avatar Apr 10 '26 10:04 Nsanjayboruds

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

  1. QuickStartList.js version 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.

  1. 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.

  1. 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.

amaan-bhati avatar Apr 18 '26 23:04 amaan-bhati

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.

Nsanjayboruds avatar Apr 19 '26 04:04 Nsanjayboruds

hey @dhananjay6561 ,I have applied all review suggestions made by copilot please review it again when have time thank you

Nsanjayboruds avatar Apr 21 '26 07:04 Nsanjayboruds

hi @Nsanjayboruds copilot reviews are done, now i will review it manually. i will get back to you soon. Thank you.

dhananjay6561 avatar Apr 21 '26 08:04 dhananjay6561

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.

dhananjay6561 avatar Apr 28 '26 08:04 dhananjay6561

@Nsanjayboruds I see some merge conflicts, can you please resolve them.

dhananjay6561 avatar Apr 28 '26 08:04 dhananjay6561

@Nsanjayboruds please resolve the copilot comments

dhananjay6561 avatar Apr 28 '26 08:04 dhananjay6561

hey @dhananjay6561 i resolved all copilot comment

Nsanjayboruds avatar Apr 28 '26 09:04 Nsanjayboruds

@Nsanjayboruds please resolve further.

dhananjay6561 avatar Apr 28 '26 09:04 dhananjay6561

@dhananjay6561 i relsoved it

Nsanjayboruds avatar Apr 28 '26 09:04 Nsanjayboruds

@Nsanjayboruds there are merge conflicts.

dhananjay6561 avatar Apr 28 '26 10:04 dhananjay6561

@dhananjay6561 i resloved the merge conflicts.

Nsanjayboruds avatar Apr 28 '26 10:04 Nsanjayboruds

@Nsanjayboruds got it. let me test the end to end flow of this quickstart. I will get back to you soon.

dhananjay6561 avatar Apr 28 '26 10:04 dhananjay6561

@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?

dhananjay6561 avatar May 13 '26 10:05 dhananjay6561