This tutorial assumes that you already know the basics of: Nodejs and Express. We'll begin with setting up a database using MongoDB, then we'll create endpoints (login and register), and finish by hosting the endpoints on Heroku. By the end of this tutorial, you will have learned how to use tools such as Nodejs, Express, React, Mongo DB, Heroku, Netlify.
Table of contents
Table of ContentsPrerequisitesStarter CodeHow to Setup the DatabaseHow to Connect Node.js to MongoDBHow to Create the Users ModelHow to Create the Register EndpointHow to Create the Login EndpointHow to Protect the EndpointsHow to Host the BackendLet's ReviewHow to Build the User InterfaceHow to Register a UserHow to Login a UserHow to Protect the RoutesHow to Make API Calls Using the useEffect HookHow to Build the Logout FunctionHow to Host the FrontendLet's ReviewAll Resources And PreviewsConclusion2 Comments
Sort: