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

Introducing MongoDB 8.0, the fastest MongoDB ever!
MongoDB Developer
JavaScript
plus
Sign in to follow topics
MongoDB Developer Centerchevron-right
Developer Topicschevron-right
Languageschevron-right

Code Examples

A lightweight, interpreted, object-oriented language. JavaScript engines execute JavaScript code in client-side (in web browsers) or server-side(for example, the V8 engine is a core component of the Node.js and Deno runtimes).

All JavaScript Code Examples
All Code Examples
search
  • Latest
  • Highest Rated
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
JavaScriptMongoDBNode.js

Oct 01, 2024
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
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

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
Code Example
FULL APPLICATION

myLeG

This project downloads the substitution plan of my school and converts it into a user-friendly page.
MongoDB thumbnail image

Jun 09, 2023
Code Example
FULL APPLICATION

Hostels Kenya Example App

Find hostels and student apartments all over Kenya
MongoDB thumbnail image

Jun 09, 2023
Code Example
FULL APPLICATION

GroupUs

A web-app that automates group formation for projects/assignments etc..
MongoDB thumbnail image

Jun 09, 2023
Code Example
FULL APPLICATION

Final Space API

Final Space API is a public RESTful API based on the animated television show Final Space.
MongoDB thumbnail image

Jun 09, 2023
Code Example
FULL APPLICATION

EnSat

An environmental satellite to get information about your environment.
MongoDB thumbnail image

Jun 09, 2023