~/talk

Building Next Generation Apps with Next.js and MongoDB

Talkat Next.js Conf 2020 · on Tuesday, 2020-10-27· [databases, nodejs]
slides:none on file

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

  1. 0:00Start
  2. 5:42Mongodb Connection Strings
  3. 13:45Sort in Mongodb
  4. 23:42Add a Projection
  5. 26:27Mongodb Atlas Search
  6. 26:38Add Mongodb Atlas Search Capabilities
  7. 27:24Api Route
  8. 29:23Mongodb Aggregation Pipeline
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.