Based on code for the entire scotch.io tutorial series: Complete Guide to Node Authentication
In order for this to work on your own, you need to update config/database.js with a remote mongo connection. Read the comments in the file to learn how with Mongo Atlas (other cloud options will also work.)