From the course: Next.js: Creating and Hosting a Full-Stack Site
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
What is MongoDB? - React.js Tutorial
From the course: Next.js: Creating and Hosting a Full-Stack Site
What is MongoDB?
- [Instructor] All right, so now that we've created the pages and the route handlers for our application, we're going to take a look at how to add a basic database to our app, and the specific type of database we're going to be using is called MongoDB. So, let's talk about some of the basics of MongoDB. The first thing to know about using databases in general here is that they allow us to persist our application's data. As I'll show you shortly, whenever our application restarts, if we have some sort of hard-coded data or structure that we've been using to take changes in our application into account, whenever our application restarts, those changes are wiped away, and we start from whatever we hard-coded into our program. So, databases allow us to get around this, and they give us a way to persist our application's data. The reason that we chose MongoDB specifically for this application is because MongoDB is what's known as a NoSQL database, meaning in this case that MongoDB stores…
Contents
-
-
-
-
-
(Locked)
What is MongoDB?1m 42s
-
(Locked)
Setting up hosting for MongoDB4m 54s
-
(Locked)
Adding MongoDB to Next.js6m 46s
-
(Locked)
Adding data to MongoDB7m 32s
-
(Locked)
Rewriting the list endpoints7m 29s
-
(Locked)
Rewriting the load product endpoint4m 2s
-
(Locked)
Rewriting the shopping cart endpoint5m 27s
-
(Locked)
Rewriting the add-to-cart endpoint5m 8s
-
(Locked)
Challenge: Rewriting the remove-from-cart endpoint57s
-
(Locked)
Solution: Rewriting the remove-from-cart endpoint4m 2s
-
(Locked)
-
-
-