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
JavaScript
plus
Sign in to follow topics
MongoDB Developer Centerchevron-right
Developer Topicschevron-right
Languageschevron-right
JavaScriptchevron-right

How to Get Started With Bun & MongoDB

16 min • Published Aug 14, 2024
JavaScriptTypeScript
Facebook Icontwitter iconlinkedin icon
Rate this video
star-empty
star-empty
star-empty
star-empty
star-empty
✅ MongoDB Atlas account → https://mdb.link/WsUOyPL1QnI-register ✅ Get help on our Community Forums → https://mdb.link/WsUOyPL1QnI-forums ✅ Written guide → https://mdb.link/WsUOyPL1QnI-guide" target="_blank" rel="noreferrer">https://mdb.link/WsUOyPL1QnI-guide - Learn how to use Bun, a high-performance JavaScript runtime, to build a simple CRUD API with MongoDB. This video walks you through setting up your environment, creating a basic web server, and connecting to a MongoDB database using Bun’s built-in features. Perfect for developers looking to explore alternatives to Node.js with modern tooling. For the complete written guide, including code snippets and detailed instructions, check out the full article here: https://mdb.link/WsUOyPL1QnI-guide" target="_blank" rel="noreferrer">https://mdb.link/WsUOyPL1QnI-guide 00:00 - Intro 01:13 - Bun Setup 02:03 - Application Structure 02:53 - Starting the application 03:59 - Connecting to MongoDB 05:54 - Building a movie TypeScript model 06:31 - Create a movies controller 07:53 - Server routing 09:44 - Connecting everything 15:18 - What's next?
All MongoDB Videos

Facebook Icontwitter iconlinkedin icon
Rate this video
star-empty
star-empty
star-empty
star-empty
star-empty
Related
Tutorial

Serverless MEAN Stack Applications with Cloud Run and MongoDB Atlas


Apr 02, 2024 | 8 min read
Code Example

Connect to a MongoDB Database Using Node.js 3.3.2


Oct 01, 2024 | 5 min read
Quickstart

MongoDB and Node.js 3.3.2 Tutorial - CRUD Operations


Oct 01, 2024 | 17 min read
Tutorial

IoT and MongoDB: Powering Time Series Analysis of Household Power Consumption


Aug 28, 2024 | 6 min read