Skip to content

Conversation

@jordan-smith721
Copy link
Collaborator

This PR does the following:

  • Adds a README for the js-express backend and updates the Java README
  • Updates the numCandidates parameter for Vector Search to be limit * 20 (as recommended in our docs)
  • Updates the FastAPI server to adjust for camel case parameters being sent from the client
  • Removes references to Atlas Search and Atlas Vector Search in favor of rename
  • Updates .env example files so that they are standardized across backends

Copy link
Collaborator

@dacharyc dacharyc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Back to you for some minor fixups but overall LGTM!

[open an issue](https://github.com/mongodb/docs-sample-apps/issues/new/choose)
on the source repository `mongodb/docs-sample-apps`.
[open an issue](https://github.com/mongodb/sample-app-java-mflix/issues/new/choose)
on the source repository `mongodb/sample-app-java-mflix`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, this was actually correct. We have disabled Issues on the artifact repos and want people to create issues directly on the source repo so we only have one place to watch instead of three of them.

Suggested change
on the source repository `mongodb/sample-app-java-mflix`.
on the source repository `mongodb/docs-sample-apps`.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good to know, I thought we were keeping the source repo separated. Changed back

├── README.md
├── client/ # Next.js frontend
└── server/ # Express.js backend
├── README-JAVASCRIPT-EXPRESS.md
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is the public-facing project, the README will be renamed by the copy tool to just README.md in the artifact repo.

Suggested change
├── README-JAVASCRIPT-EXPRESS.md
├── README.md

```env
# MongoDB Configuration
# Replace with your MongoDB Atlas connection string
MONGODB_URI=mongodb+srv://<username>:<password>@<cluster>.mongodb.net/sample_mflix?retryWrites=true&w=majority
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the Voyage API key to the Python and Java .env.example files when I moved them - we should probably do this for JS too and update this README to match.


From the `server/js-express` directory, run:

```bash
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend making these separate bash blocks so users can just execute them in their IDE if they want to.

[open an issue](https://github.com/mongodb/docs-sample-apps/issues/new/choose)
on the source repository `mongodb/docs-sample-apps`.
[open an issue](https://github.com/mongodb/sample-app-nodejs-mflix/issues/new/choose)
on the source repository `mongodb/sample-app-nodejs-mflix`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
on the source repository `mongodb/sample-app-nodejs-mflix`.
on the source repository `mongodb/docs-sample-apps`.

If you have verified the above and still have issues, please
[open an issue](https://github.com/mongodb/docs-sample-apps/issues/new/choose)
on the source repository `mongodb/docs-sample-apps`.
[open an issue](https://github.com/mongodb/sample-app-nodejs-mflix/issues/new/choose)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[open an issue](https://github.com/mongodb/sample-app-nodejs-mflix/issues/new/choose)
[open an issue](https://github.com/mongodb/docs-sample-apps/issues/new/choose)

If you have verified the above and still have issues, please
[open an issue](https://github.com/mongodb/docs-sample-apps/issues/new/choose)
on the source repository `mongodb/docs-sample-apps`.
[open an issue](https://github.com/mongodb/sample-app-java-mflix/issues/new/choose)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[open an issue](https://github.com/mongodb/sample-app-java-mflix/issues/new/choose)
[open an issue](https://github.com/mongodb/docs-sample-apps/issues/new/choose)

```bash
# Run all integration tests
./mvnw test -Dtest=AtlasSearchIntegrationTest
./mvnw test -Dtest=MongoDBSearchIntegrationTest
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're changing this command, we need to change the corresponding test files.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The files were already changed as far as I can see on my branch


# Run a specific test
./mvnw test -Dtest=AtlasSearchIntegrationTest#testSearchMoviesByPlot_Success
./mvnw test -Dtest=MongoDBSearchIntegrationTest#testSearchMoviesByPlot_Success
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

"dotenv": "^17.2.3",
"express": "^5.1.0",
"mongodb": "^6.20.0",
"mongodb": "^7.0.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! 🎉

└── server/ # Express.js backend
├── README-JAVASCRIPT-EXPRESS.md
├── client/ # Next.js frontend (TypeScript)
└── server/js-express/ # Express.js backend
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, missed this - the copier tool will rename this to just server in the artifact repo.

Suggested change
└── server/js-express/ # Express.js backend
└── server/ # Express.js backend


### 2. Install Backend Dependencies

From the `server/js-express` directory, run:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
From the `server/js-express` directory, run:
From the `server/` directory, run:


### 3. Start the Backend Server

From the `server/js-express` directory, run:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
From the `server/js-express` directory, run:
From the `server/` directory, run:

Navigate to the Express server directory:

```bash
cd server/js-express
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cd server/js-express
cd server/

Copy link
Collaborator

@dacharyc dacharyc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! ✅

@dacharyc dacharyc merged commit 2f9ea16 into mongodb:development Nov 7, 2025
1 of 3 checks passed
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.

2 participants