Learn how to create a MERN stack application with authentication, using Express, MongoDB, Mongoose, React, Redux, React Router, and React Bootstrap. Implement authentication using JSON Web Tokens (JWT) and HTTP-only cookies. Includes backend API, middleware, database, and JWT.
Table of contents
Getting StartedBackend SetupES ModulesEnvitonment VariablesUser Routes and ControllerUsing an Async HandlerCustom Error HandlerAdd The Rest Of The RoutesAdd The RoutesDatabase SetupCreate a MongoDB Atlas AccountCreate a DatabaseConnection StringConnect To The DatabaseUser ModelRegister RouteHashing PasswordsTest The RouteJSON Web TokensAuth RouteCompare PasswordsTest The RouteLogout RouteGet User Profile RoutesUpdate User Profile RouteSort: