Getting Started with Deno & MongoDB



Getting Started with Deno & MongoDB

Getting Started with Deno & MongoDB

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 has no package manager, uses ES modules, has first-class `await`, has built-in testing, and is somewhat browser-compatible by providing built-in `fetch` and the global `window` object.

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.

Article Link: https://www.mongodb.com/developer/article/getting-started-deno-mongodb/
GitHub Repo: https://github.com/mongodb-developer/getting-started-deno-mongodb

✅ Sign-up for a free cluster at: https://bit.ly/mongodb-jumpstart
✅ Get help on our Community Forums: https://bit.ly/mongodb-community

Timestamps:
00:00 – Intro
01:12 – Deno Installation
01:21 – Set up Oak Middleware
03:44 – Set up MongoDB Atlas Data API
04:55 – Create Route Controller
07:10 – “Create” Route
10:34 – “Read” All Documents Route
12:48 – “Read” Single Document Route
14:45 – “Update” Route
17:20 – “Delete” Route
19:03 – BONUS: “Aggregation” Route
21:18 – What Next?

💬 Connect with Jesse:
Twitter: https://twitter.com/codestackr
YouTube: https://youtube.com/codestackr
LinkedIn: https://linkedin.com/in/codestackr
Instagram: https://instagram.com/codestackr
TikTok: https://tiktok.com/@codestackr

Subscribe to MongoDB ►►► https://bit.ly/3bpg1Z1

💬 Connect with MongoDB:
Website: https://bit.ly/2LjtNBZ
Twitter: https://bit.ly/3fH87gR
Facebook: https://bit.ly/3fEaIsd
Linkedin: https://bit.ly/2SY9w90
Instagram: https://bit.ly/3bn9bDv
Community Forums: https://bit.ly/2I8VCi5
TikTok: https://bit.ly/3fHoqdJ

Comments are closed.