Episode 9: Using OAuth for Social Login (Google, GitHub)
Enable users to log in using Google and GitHub accounts via OAuth 2.0, using Passport.js and passport-google-oauth20 / passport-github2.
Enable users to log in using Google and GitHub accounts via OAuth 2.0, using Passport.js and passport-google-oauth20 / passport-github2.
Allow Handlebars views to all pages
Use Handlebars as the templating engine to serve HTML pages (e.g. home, product list, product details, login page) directly from the backend.
Create Login page, use JSON-Server `/users`, manage login with localStorage
Implement a system for users to place orders based on their cart. Store order history and support retrieving past orders.
Enable each user to add, remove, and view products in their shopping cart. Use Mongoose’s population feature to retrieve full product details.
Enable users to register and log in to the application securely using JWT tokens and HTTP-only cookies. Add basic authentication middleware.
Define the Product model using Mongoose and implement RESTful API endpoints for managing products.
Set up a basic Express.js project using Express Generator, configure environment, folder structure, and enable CORS for cross-origin requests.
An online marketplace where users can register, browse products, add items to their cart, and complete purchases. Admins can manage products, orders, and users. OAuth (Google) login support and sec...