From the course: Next.js 14 from Scratch: Build a Real-World Project Using Next.js 14 and MongoDB
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
MongoDB Compass and importing data - Next.js Tutorial
From the course: Next.js 14 from Scratch: Build a Real-World Project Using Next.js 14 and MongoDB
MongoDB Compass and importing data
All right, guys, so now we're going to set up Compass, which is a desktop tool to use to connect to your MongoDB database, and then we're going to import all of our data. So to get Compass, just go to mongodb.com, and then Products, and you click on this. Under Tools, you'll see Compass, and then just go ahead and download it. It doesn't matter if you're on Windows, Mac, Linux, whatever, it's cross-platform. So go ahead and download it. I obviously already have it installed, so I'm going to open it up. And what we want to do is from this page, and we're going to click Connect again like we did in the last video, but instead of Drivers, we're going to click on Compass, and then we're going to copy that string right there. And then in Compass, we can paste that in, and just replace the angle bracket password with your actual password, and then click Connect. So as you can see, you can ignore the admin and local. Those are going to be there whenever you create a new database. But…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Create MongoDB database8m 44s
-
(Locked)
MongoDB Compass and importing data4m 36s
-
(Locked)
Database connection and Mongoose6m 31s
-
(Locked)
Your first API route6m 5s
-
(Locked)
Property and user models12m 30s
-
(Locked)
Fetch data using server component9m 48s
-
(Locked)
Requests file4m 25s
-
(Locked)
Fetch single property10m 51s
-
(Locked)
Single property page11m 54s
-
(Locked)
Property details component15m 34s
-
(Locked)
Spinner component2m 37s
-
(Locked)
-
-
-
-
-
-
-