- [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 out confirmation emails.
In our case though, it's enough if we can create users,
and in the next chapter we will use Passport
to authenticate users against a database.