Skip to content

mongodb-developer/SearchHostedWorkshop

Repository files navigation

Atlas Search Workshop

Hello! 👋 Do you want to run an Atlas Search Workshop the easy way? Clone this repo!

https://www.atlassearchworkshop.com



In the hosted Atlas Search Workshop application, you'll find:



By building out the MongoDB Netflix Clone application, you'll demonstrate all sorts of complex, fine-grained full-text searches on your Atlas data.

Current features implemented in this Movie Search Engine demo application include:

  • fuzzy matching
  • highlighting
  • autocomplete
  • relevance-based scoring
  • custom function scoring

Future Atlas Search features to implement can include:

  • facets
  • synonyms

The movie search application was created using:

  • React
  • MongoDB Realm for backend HTTPs endpoints and webhooks
  • The Atlas sample dataset of sample_mflix.movies


API Points of Integration

This application is hosted entirely on Realm and calls 2 API endpoints:
  • getProductsEndpoint in the Home.js page on line 24
  • Suggestions_AC_Endpoint, used for autocompleted product names, in the Header.js component on line 17.

Attendee Prerequisites:

Workshop Attendees Will Need to:

  1. Load data to Atlas cluster:
    • database: sample_mflix
    • collection: movies
  2. Create Search indexes.
  3. Create a Realm Application.
  4. Create 2 HTTP Endpoints inside of Realm.

To Build and Run this Search Workshop Application:

  1. Clone the repo.
  2. Navigate inside directory.
  3. Run npm install .
  4. Run npm start .

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

To Customize this Workshop:

The workshop is all entirely on App.js with the following React components:

Feel free to customize for the event name and details, presenters, resources or even the git repo in the embedded code sandbox.

Special Thanks


Brian Leonard - In my 4+ years at MongoDB, I have never written a workshop that wasn't ripped off of Brian in some way. #BeLikeBrian

Snehal Bhatia- That Google doc, tho!


Also please join our online MongoDB Community to interact with our product and engineering teams along with thousands of other MongoDB and Realm users.

Have fun and happy coding!

About

Atlas Search Workshop Website with Embedded CodeSandbox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published