Add Ruby + PostgreSQL quickstart guide#773
Add Ruby + PostgreSQL quickstart guide#773Nsanjayboruds wants to merge 4 commits intokeploy:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new Ruby (Sinatra) + PostgreSQL quickstart and wires it into the Quickstarts UI and sidebar so users can discover and follow the guide.
Changes:
- Added a new Ruby (Sinatra) + PostgreSQL Books CRUD quickstart doc (Docker + Local flows).
- Added “Ruby” to the Quickstart language filter UI and registered Ruby quickstart entries in the list.
- Added a Ruby category under QuickStarts in the v4.0.0 sidebar.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| versioned_sidebars/version-4.0.0-sidebars.json | Adds Ruby category + doc entry under QuickStarts for v4.0.0 navigation. |
| versioned_docs/version-4.0.0/quickstart/ruby-sinatra-postgres.md | New Ruby+Postgres quickstart guide content (Docker + Local). |
| src/components/QuickStartList.js | Registers Ruby quickstarts (Docker + Local) in the Quickstarts catalog. |
| src/components/QuickStartFilter.js | Adds Ruby as a selectable language with icon/color in the filter UI. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
versioned_docs/version-4.0.0/quickstart/ruby-sinatra-postgres.md
Outdated
Show resolved
Hide resolved
versioned_docs/version-4.0.0/quickstart/ruby-sinatra-postgres.md
Outdated
Show resolved
Hide resolved
d1b6200 to
4f2b408
Compare
|
@copilot open a new pull request to apply changes based on the comments in this thread |
1 similar comment
|
@copilot open a new pull request to apply changes based on the comments in this thread |
Achanandhi-M
left a comment
There was a problem hiding this comment.
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
8d671ce to
eadbf29
Compare
hey @Achanandhi-M i added a video showcasing my change |
Signed-off-by: Nsanjayboruds <nishantborude555@gmail.com>
7219218 to
ba4b880
Compare
Signed-off-by: Nsanjayboruds <nishantborude555@gmail.com>
23f225c to
0718d0a
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 8 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
| ] | ||
| }, | ||
| "keploy-cloud/cloud-installation", |
There was a problem hiding this comment.
keploy-cloud/cloud-installation is already included in the "Installation" category as the "Enterprise" doc (line 31). Adding it again as a standalone item will duplicate the same page in the sidebar; please remove the extra standalone entry (or keep only one location).
| "keploy-cloud/cloud-installation", |
| - ruby-framework | ||
| keyword: | ||
| - Sinatra Framework | ||
| - PostgreSQL | ||
| - Ruby | ||
| - API Test generator | ||
| - Auto case generation |
There was a problem hiding this comment.
Frontmatter uses keyword: but Docusaurus expects keywords: (plural) for SEO metadata. As written, these entries will be ignored; rename keyword to keywords to match the rest of the docs.
| If you stopped the app after verification, restart recording: | ||
|
|
There was a problem hiding this comment.
The local flow runs keploy record -c "bundle exec ruby app.rb" twice (first under "Start the Application with Keploy", then again under "Lights, Camera, Record!"). This makes the workflow ambiguous and can lead to port-in-use issues if users don’t stop the previous run; consider keeping a single recording run (verify health + generate testcases within it) or explicitly instruct when to stop before restarting.
| If you stopped the app after verification, restart recording: | |
| Keep the existing `keploy record` session running after the health check, then start generating testcases by making API calls. | |
| If you already stopped the recording session, start it again with: |
| // Ruby list | ||
|
|
||
| { | ||
| title: "Ruby + Postgres", | ||
| language: "Ruby", | ||
| server: "Docker", | ||
| description: | ||
| "A sample Books CRUD API to demonstrate how seamlessly Keploy integrates with Ruby (Sinatra) and PostgreSQL.", | ||
| link: "/docs/quickstart/samples-ruby/#using-docker-compose-", | ||
| }, | ||
|
|
||
| { | ||
| title: "Ruby + Postgres", | ||
| language: "Ruby", | ||
| server: "Local", | ||
| description: | ||
| "A sample Books CRUD API to demonstrate how seamlessly Keploy integrates with Ruby (Sinatra) and PostgreSQL.", | ||
| link: "/docs/quickstart/samples-ruby/#running-app-locally-on-linuxwsl-", | ||
| }, | ||
|
|
There was a problem hiding this comment.
src/components/QuickStartFilter is imported by versioned docs pages (e.g., version-3.0.0 quickstart pages). Since QuickStartList is shared across all versions, adding v4-only Ruby links here will surface Ruby quickstarts in older doc versions where /quickstart/samples-ruby doesn’t exist. Consider making the list version-aware or adding the Ruby quickstart doc+sidebar entries to the older supported versions.
| // Ruby list | |
| { | |
| title: "Ruby + Postgres", | |
| language: "Ruby", | |
| server: "Docker", | |
| description: | |
| "A sample Books CRUD API to demonstrate how seamlessly Keploy integrates with Ruby (Sinatra) and PostgreSQL.", | |
| link: "/docs/quickstart/samples-ruby/#using-docker-compose-", | |
| }, | |
| { | |
| title: "Ruby + Postgres", | |
| language: "Ruby", | |
| server: "Local", | |
| description: | |
| "A sample Books CRUD API to demonstrate how seamlessly Keploy integrates with Ruby (Sinatra) and PostgreSQL.", | |
| link: "/docs/quickstart/samples-ruby/#running-app-locally-on-linuxwsl-", | |
| }, | |
| // Ruby quickstarts are intentionally excluded from this shared list because | |
| // older versioned docs pages also import this component and do not include | |
| // /docs/quickstart/samples-ruby. Add them back only when this list becomes | |
| // version-aware or when the Ruby quickstart docs exist in all supported versions. |
amaan-bhati
left a comment
There was a problem hiding this comment.
Thank you for adding the Ruby Sinatra and PostgreSQL quickstart and for providing the demo video. The guide structure and content are a good start.
A few things need to be addressed before this is ready to merge:
Issues Found
1. Image filenames with spaces
The committed image files have problematic names:
ruby quickstartdocker_Compose.png- contains a spaceruby_keploy .png- has a trailing space before the extension
These cause URL encoding issues and are inconsistent with the repo's image naming conventions. Please rename them using only underscores or hyphens with no spaces or trailing characters.
2. QuickStartFilter.js over-reformatted
The diff shows 149 additions and 30 deletions in QuickStartFilter.js, which is far more than what adding a single Ruby entry requires. The extra formatting-only changes create unnecessary merge conflicts for other open PRs. Please revert those and keep the diff scoped to only the Ruby entry addition.
3. Outstanding items from contributing guide
Please confirm all items from ADDING_A_QUICKSTART.md have been addressed and request a re-review from the maintainer.
Please also rebase against main before resubmitting as there are merge conflicts with other open PRs touching the same files.
Signed-off-by: Nsanjayboruds <nishantborude555@gmail.com>
96145ca to
e68ccf8
Compare
Signed-off-by: Nishant Sanjay borude <nishantborude555@gmail.com>
|
Sidebar duplicate comment Frontmatter keyword vs keywords Local flow running keploy record twice QuickStartFilter over-formatted / large diff Image filenames with spaces / trailing characters Outstanding ADDING_A_QUICKSTART checklist + rebase request |
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✅ Added Ruby language support to
QuickStartFilter.js✅ Registered quickstart in
QuickStartList.js✅ Updated sidebar navigation in
version-4.0.0-sidebars.json🔗 Related Repository
Sample application repository: https://github.com/Nsanjayboruds/keploy-ruby-postgresql-quickstart
✅ Pre-submission Checklist
npm run buildsuccessful)📸 Preview
The quickstart covers:
🙏 Additional Notes
This is my first contribution to Keploy docs. Looking forward to feedback and happy to make any requested changes!