Building Next Generation Apps with Next.js and MongoDB
summary
Demo builds a Next.js app called Next BnB wired to MongoDB Atlas using the with-mongodb example, showing connection caching to avoid new sockets, using getServerSideProps for listings and getStaticProps with revalidate: 1 plus fallback true for ISR, limiting homepage to 40 of ~5,000 sample documents, mapping Decimal128 to numbers, and adding an API route that runs a MongoDB aggregation with Atlas Search after creating a search index — live code runs after fixing a collection-name bug.
AI-written summary · about
chapters (8)
- 0:00Start
- 5:42Mongodb Connection Strings
- 13:45Sort in Mongodb
- 23:42Add a Projection
- 26:27Mongodb Atlas Search
- 26:38Add Mongodb Atlas Search Capabilities
- 27:24Api Route
- 29:23Mongodb Aggregation Pipeline
related talks
15mBuilding Isomorphic JavaScript Apps Faster with Next.js
40mGoing serverless with MongoDB
10mEfficiency at scale with Next.js and Supabase
24mMastering Data Complexity with MongoDB's Unified API
35mNoSQL, No Server, No problem: Using ORM's in Javascript Applications
21mBuild the next big thing with MongoDB Atlas on Microsoft Azure
22mNext.js is my main web server for all APIs. And I like it!
22mNode.js Applicative DoS Through MongoDB Injection
