Skip to content

Add the C, CPP, JavaRS, KotlinC, KotlinSync, PHP, Ruby Getting Started Code - #3

Open
tmcneil-mdb wants to merge 2 commits into
mainfrom
Migrate-Getting-Started
Open

Add the C, CPP, JavaRS, KotlinC, KotlinSync, PHP, Ruby Getting Started Code#3
tmcneil-mdb wants to merge 2 commits into
mainfrom
Migrate-Getting-Started

Conversation

@tmcneil-mdb

Copy link
Copy Markdown

Description

Adds the remaining six Get Started sample applications — C, C++, Java Reactive
Streams, Kotlin Coroutines, Kotlin Sync, PHP, and Ruby — mirroring the existing
go/hello-world, node/hello-world, python/hello-world, dotnet/hello-world,
and java/hello-world samples. Each app connects to a MongoDB deployment using
the connection string in the MONGODB_URI environment variable, seeds a few
sample product documents into the get_started.products collection, then
queries and prints one of them.

  • c/hello-world/ — sample app, CMake build (mongoc 2.0), README, .gitignore
  • cpp/hello-world/ — sample app, CMake build (mongocxx 4.0), README, .gitignore
  • java-rs/hello-world/ — sample app, Maven build (mongodb-driver-reactivestreams via mongodb-driver-bom 5.9.1, Project Reactor 2025.0.0, Java 21), README, .gitignore
  • kotlin-coroutine/hello-world/ — sample app, Maven build (mongodb-driver-kotlin-coroutine 5.9.1, Kotlin 2.1.0), README, .gitignore
  • kotlin-sync/hello-world/ — sample app, Maven build (mongodb-driver-kotlin-sync 5.9.1, Kotlin 2.1.0), README, .gitignore
  • php/hello-world/ — sample app, Composer manifest (mongodb/mongodb 2.0, ext-mongodb 2.0), README, .gitignore
  • ruby/hello-world/ — sample app, Gemfile (mongo 2.0), README, .gitignore
  • Added the C, C++, Java Reactive Streams, Kotlin Coroutines, Kotlin Sync, PHP,
    and Ruby entries to the root README

This supersedes the following PRs, which targeted the wrong repository:

README changes

  • Added Windows commands throughout, following the powershell convention
    established by python/hello-world/README.md
  • Noted in the Ruby README that the driver is not officially supported on
    Windows, and omitted Windows commands there.

Testing

All seven samples were run end to end on macOS by following the documented
setup steps in each README, connecting to an Atlas deployment and confirming
the expected product document was printed.

JIRA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant