Explore Developer Center's New Chatbot! MongoDB AI Chatbot can be accessed at the top of your navigation to answer all your MongoDB questions.

Join us at AWS re:Invent 2024! Learn how to use MongoDB for AI use cases.
MongoDB Developer
MongoDB Developer Center

Code Examples

Languagechevron-down
Technologychevron-down
Productschevron-down
Expertise Levelchevron-down
Contributed Bychevron-down
Example Typechevron-down
search

Featured Code Examples

Code Example

Beginner Coding Project: Build a Blog Engine With Rust and MongoDB

MongoDB thumbnail image
Rust

Sep 11, 2024 | 0 min read
Code Example

Build a MongoDB Spring Boot Java Book Tracker for Beginners

java logo

Mar 22, 2023 | 0 min read
Code Example

A Spotify Song and Playlist Recommendation Engine

MongoDB thumbnail image

Nov 13, 2023 | 6 min read
  • Latest
  • Highest Rated

All Code Examples

Code Example
SNIPPET

Connect to a MongoDB Database Using Node.js 3.3.2

Node.js and MongoDB is a powerful pairing and in this code example project we show you how.
MongoDB thumbnail image

Oct 01, 2024
Lauren Schaefer
Code Example
FULL APPLICATION

Introducing the Tour Planner With MongoDB Vector Search

Discover the Tour Planner: AI-powered travel planning using PHP, Laravel, MongoDB Vector Search & OpenAI. Personalized itineraries made easy!
MongoDB thumbnail image

Sep 24, 2024
Pavel Duchovny
Code Example
FULL APPLICATION

Blogue

Blogue is a writing platform where all writers/non-writers are welcome. Its back end is Node.js and the front end is Next.js and React.js. Atlas is the storage.
MongoDB thumbnail image

Sep 11, 2024
Rachelle Palmer
Code Example
FULL APPLICATION

EHRS-Peru

This is a theoretical Electronic Health Record system (EHR-S) in Peru, which uses a MongoDB cluster to store clinical information.
MongoDB thumbnail image

Sep 11, 2024
Code Example
FULL APPLICATION

Beginner Coding Project: Build a Blog Engine With Rust and MongoDB

Check out this quick and easy example application project that creates a demo blog post engine. It's ideal for beginners to the Rust programming language.
MongoDB thumbnail image

Sep 11, 2024
Rachelle Palmer
Code Example
FULL APPLICATION

Magazine Management

Learn how to build a system that manages students' posts in universities. It allows students and clients to read posts in diverse categories.
MongoDB thumbnail image

Sep 11, 2024
Code Example
FULL APPLICATION

Trends Analyser

Let's analyse how hashtags on Twitter change over time. We'll use the Twitter API to fetch realtime trends data and save it to MongoDB for later analysis.
MongoDB thumbnail image

Sep 11, 2024
Rita Rodrigues
Code Example

Cinema: Example Go Microservices Application

Looking for a code example that has microservices in Go with Docker, Kubernetes, and MongoDB? Look no further!
MongoDB thumbnail image

Sep 11, 2024
Rachelle Palmer
Code Example
FULL APPLICATION

Build a Command Line Tool With Swift and MongoDB

This article will help you build a command line executable tool that manipulates data in a MongoDB database.
MongoDB thumbnail image

Sep 11, 2024
Michael Lynn
Code Example
FULL APPLICATION

Getting Started With MongoDB and Tornado

In this quick start, we will create a CRUD (Create, Read, Update, Delete) app showing how you can integrate MongoDB with your Tornado projects.
MongoDB thumbnail image

Jul 12, 2024
Aaron Bassett