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.

Testing the form and reviewing the data in MongoDB

Testing the form and reviewing the data in MongoDB

From the course: Advanced Express

Start my 1-month free trial

Testing the form and reviewing the data in MongoDB

- [Instructor] With the route in place, now let's try this form out for real. So I fill it out, my name, my email address. You should remember the email address and the password you're using here because we will need it a little bit later. And I submit it, and I get the thank you for your registration message back. As we are using MongoDB Atlas, we can now easily head over to their UI to see how the data actually looks in the database. So, in the Atlas dashboard, I click on my Cluster0 here, and go into Collections, and when I then look into development users, you see the newly created user with a ObjectId that is automatically provided by MongoDB, the username, the email address, the hash password using bcrypt, and also the createdAt and updatedAt time stamps, and this __v, that is a field that is internal to Mongo. Of course this is not a full-blown user management system. For that, you'd also want to add functionality for users to update their data, or maybe you even want to send…

Contents