From the course: Advanced Express
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Setting up a hosted MongoDB server
- [Instructor] On many websites, you find a form for users to register an account and set a password. And in this chapter, we are going to build exactly that. To store the users we will use MongoDB and for that we need access to a MongoDB server. While it's easy to spin up a MongoDB server on a Linux box, it can be hard on other operating systems like Windows. Additionally, a production setup usually requires at least three nodes to form a cluster. If you don't want to set this up, you can use a hosted solution. For this course we will use MongoDB Atlas. It's a hosted solution directly from the creators of MongoDB and it offers a free tier that is sufficient for our purposes. So let's set this up, look up MongoDB Atlas in a search engine and then you will end up on a page like you see it here. And here you will simply select get started for free and create an account. I already created an account and logged in. And you should find yourself then on a page like this where you can create…
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)
Setting up a hosted MongoDB server4m 22s
-
(Locked)
Connecting to MongoDB3m 27s
-
(Locked)
Adding MongoDB and Mongoose to an Express project4m 54s
-
(Locked)
Creating a user schema for Mongoose6m 21s
-
(Locked)
Using bcrypt to hash and validate passwords1m 31s
-
(Locked)
Adding password encryption and validation to a Mongoose model5m 12s
-
(Locked)
Creating a user registration route5m 36s
-
(Locked)
Testing the form and reviewing the data in MongoDB1m 33s
-
(Locked)
-
-
-
-