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

Learn why MongoDB was selected as a leader in the 2024 Gartner® Magic Quadrant™
MongoDB Developer
MongoDB Developer Center
chevron-right
Developer Topics
chevron-right

Getting Started with Deno 2.0 & MongoDB

22 min • Published Oct 22, 2024
Facebook Icontwitter iconlinkedin icon
Rate this video
star-empty
star-empty
star-empty
star-empty
star-empty
✅ Create your free Atlas Cluster → https://mdb.link/p541Je4J_ws-register ✅ Written tutorial → https://mdb.link/p541Je4J_ws-article ✅ Get help on our Community Forums → https://mdb.link/p541Je4J_ws-forums Deno is a “modern” runtime for JavaScript and TypeScript that is built in Rust. This makes it very fast! If you are familiar with Node.js, then you will be right at home with Deno. It is very similar but has some improvements over Node.js. In fact, the creator of Deno, Ryan Dahl, also created Node and Deno is meant to be the successor to Node.js. Deno now supports package managers like npm and JSR, while still maintaining the ability to import directly from URLs without a package manager. It uses ES modules, has first-class `await` support, has built-in testing, and implements web standard APIs where possible, such as built-in `fetch` and `localStorage`. This flexibility in dependency management allows developers to choose the approach that best suits their project needs. Aside from that, it’s also very secure. It’s completely locked down by default and requires you to enable each access method specifically. This makes Deno pair nicely with MongoDB since it is also super secure by default. 🔗 GitHub Repo: https://github.com/mongodb-developer/getting-started-deno-mongodb ⏱️ Timestamps ⏱️ 00:00 - Introduction 01:49 - Getting Started with Deno 2.0 02:36 - Creating a Basic HTTP Server 06:05 - Setup MongoDB Connection 08:28 - Configure Environment Variables 09:05 - Create Route Controllers 09:31 - Add Todo Function 11:37 - Get Todos Route 13:26 - Get Todo Route (Single Item) 15:18 - Update Todo Route 17:48 - Delete Todo Route 19:07 - Bonus: Aggregation Route 21:59 - What Next? Subscribe to MongoDB YouTube→ https://mdb.link/subscribeAll MongoDB Videos

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

The Atlas Search 'cene: Season 1


Sep 11, 2024 | 2 min