
Showcase a React MERN ecommerce app, Tech Lines, with dark and light mode, Google login, product cards, cart checkout, and an admin console to manage users, reviews, products, and orders.
Install nodejs and npm to set up the development environment for the React MERN stack, then verify versions with node -v and npm -v.
Install git to enable version control and synchronize your code with GitHub, then verify the installation by running git -v and checking the version.
Install and set up Visual Studio Code as the preferred code editor for building the web-shop in the React MERN full stack, with downloading and launching tips.
Install essential Visual Studio Code extensions for a React MERN project, including ESLint, Import Helper, Prettier, React Redux Snippets, and VS Code icons, to streamline coding.
Explore how to configure prettier in a React MERN full stack web-shop project to achieve consistent, readable code with single quotes and a 120 character line limit.
Set up environment in Visual Studio Code, create server and client folders, initialize npm, scaffold client with npx create-react-app, and run npm start to view React template at port 3000.
Set up the backend to supply frontend data by creating db.js and index.js and wiring npm start, then connect to MongoDB with mongoose using .env for the uri.
Install backend dependencies in the taglines folder by running npm install, updating package.json with bcryptjs, concurrently, dotenv, express, express-async-handler, jsonwebtoken, jwt-decode, mongoose, nodemailer, and stripe.
Set up the backend in index.js by initializing dotenv and connecting to the database. Create an express server, enable json parsing, and expose a basic API on port 5000.
Sign up for a MongoDB cloud account via Google, create a Frankfurt cluster, generate a connection string, add it to .env, and verify the app connects with npm run server.
Learn how to use MongoDB Compass to connect to your database, create a taglines database with a products collection, and import data to power full stack app via an API.
Create and export a Mongoose product model by building a product schema with fields like name, images, category, reviews, rating, price, stock, isNew, stripeId, and timestamps.
Create an express product route by adding a routes folder, defining a get products handler that fetches all products from MongoDB, and expose it under api/products.
Master version control with git and GitHub by creating branches, initializing a local repo, configuring a .gitignore, and committing changes, including guarding dot env files and pushing a public repository.
Use GitHub branch snapshots for each course section, view exact changes, and copy raw files to recover from typos and resume progress.
Develop the front end and API for a React MERN web-shop by building first components, passing props, nesting child components, displaying product data, and setting up Redux for client-side data.
Explore setting up a React front end, cleaning the client folder, removing unused files, and preparing the project structure with screens, Redux, components, and Chakra UI styling.
Get started with Chakra UI by installing its npm dependencies in the client folder, wrapping your app with the Chakra provider, and confirming styling changes in the front end.
Build a product screen in a React 18 app using Chakra UI boxes and a Chakra provider. Learn to create a products screen component, import Box, and render product tiles.
Create a product card component in a React MERN app, pass product data and loading props from the product screen, and use component-based design with JSX and props.
Build a React product card with Chakra UI, skeleton loading, image, and badges that show stock status (low, sold out, in stock) and a new label when applicable.
Fetches product data from the database into the product screen using Axios, updates state with response data from the API products route, and foreshadows Redux-based data flows.
Style the product screen with Chakra UI to keep the product card layout tidy and responsive across base, md, and lg breakpoints, showing brand, name, subtitle, category, price.
Render a dynamic list of product cards by mapping over the data array, using a unique key for each item, and center the layout with Chakra UI components.
Use concurrently to run the back end and front end from one command by wiring server and client scripts in package.json for seamless deployment.
Fix the babel plugin warning by adding the babel plugin proposal private property and object to dev dependencies in package.json, then run npm start to resolve the issue.
Learn how to manage UI state with Redux when product cards update stock without the parent screen noticing, using Redux Toolkit for easy setup.
Set up a Redux store with Redux Toolkit, create reducers, actions, and slices (using combineReducers), wrap the app with React-Redux provider, and connect the product screen to manage state.
Learn to build a product slice with Redux Toolkit in a React MERN app, defining initial state (loader, products, pagination, favorites) and reducers for loading, errors, and a products selector.
Create Redux product actions to fetch products from the API, manage loading and errors, handle pagination, and connect slices and store with a curried get products function.
Learn to use redux devtools to visualize the redux store, inspect the initial state from the products slice, and verify data loading in a React MERN full-stack app.
Connect a React frontend to Redux using useSelector and useDispatch to fetch and display products from the state. Load data on component mount with useEffect and the get products action.
Learn to implement a Redux-driven loading state with skeleton placeholders, refine the product card, and reliably display product images by using a public images folder and graceful fallbacks.
Push your Redux-enabled React app with Chakra UI to GitHub to synchronize end of chapter one, review changes, commit, and prepare for pagination in the next chapter.
Access the chapter code on GitHub in the Ben Stecklein tech lines repository branches, use the code when stuck, or review how the instructor implemented features.
Explore front end development with pagination and a toggle to filter favorite products, while the header enables React routing and the back end is extended.
Refine the backend get products route to support page and per page, compute indices with math.ceil, and return paginated products with current page and total pages for the front end.
Learn how to implement Redux slices for favorites in a React MERN app, persisting preferences with local storage, handling favorites state, toggling, and exporting actions for a seamless user experience.
Implement paginated product retrieval in a React MERN app using Redux actions and slices, with page parameters, ten items per page by default, and favorites toggle.
Manage get products and favorites by adding or removing items, syncing with local storage, and toggling favorites through async dispatch and state updates in a React MERN web shop.
Learn to initialize a header component for a React MERN full-stack shop, implementing chakra UI icon buttons and redux to toggle favorites with conditional rendering.
Initialize React router in a React MERN full-stack app by wrapping the app with browser router and a persistent header, then map routes for home and products.
Learn to implement a product card with add to favorites and remove from favorites using Redux actions, useSelector, and local storage, including a flex layout and icon buttons.
Improve the header heart interaction by expanding the clickable area to the entire icon button, so clicking the gray area or the heart toggles favorites and enhances user experience.
Implement pagination and a favorites toggle on the products screen using Redux, Chakra UI icons, and dynamic page buttons that reflect the current page and total pages.
Push your code to the remote repository by staging changes, committing, and pushing to the origin branch, using chapter-specific branches to track progress.
Access chapter-specific code on github.com Ben Stecklein slash tech lines slash branches to follow along if you get stuck, and reuse the examples to reinforce your understanding.
Advance website structure by updating the header and enabling light and dark mode. Create a product screen for a single item and craft a strong landing page in chapter three.
Learn to implement a get product by id route in a MERN stack app using mongoose findById to fetch a single product. Handle not found errors with a 404 response.
Create redux actions and a product slice on the client, build components and routes, and fetch product data from the backend, while managing loading, error, and a one-time review flag.
Master how to create a get products action in a React MERN app, fetch product data with axios, dispatch updates to the store, and wire routes for the products page.
Create a three-route structure with a landing screen at the home route and a products screen at /products, plus a product route that uses an id to fetch api data.
Create a responsive landing screen using Chakra UI in a React MERN app, featuring color mode aware visuals, a logo, hero text, and a discover now CTA.
Refine the products screen by adding an error handling path that shows a Chakra alert on fetch failure, with a descriptive message and test with a 404 error.
Add a color mode toggle to the header in a React MERN app using Chakra UI. Implement useColorMode with sun and moon icons and a ghost button.
Create a NavLink component using Chakra UI's icon button, wired to react-router-dom links, pass through children, and integrate with the header, refining props and imports for clean navigation.
Build a header using Chakra UI, featuring a flex stack, icon button, and color mode toggle, with navigation links via React Router DOM and state managed by useDisclosure and useEffect.
Build a responsive header using chakra with a wrapping box, flex navigation, logo, and a color mode toggle that switches dark and light themes via a moon icon.
Refine the header component by integrating a color mode toggle, favorites icon, and responsive mobile navigation, while practicing conditional rendering and state behavior across routes.
Build a responsive mobile header with a hamburger/close icon toggle using Chakra UI, leveraging useState for on open/off states and breakpoint behavior to reveal a menu and dark/light mode.
Create interactive product cards that swap to a second image on hover using the use state hook, and link to a dynamic product screen URL with the product id.
Create a dynamic star icon component in a React MERN app using Chakra UI icons, with a default rating of zero, and color stars by rating for the product card.
Set up the product screen by importing Chakra UI components and icons, read the product id from the URL with useParams, dispatch getProduct, and initialize quantity to 1 with useEffect.
Render the product screen by handling loading and error states with a spinner and alert, and display product details with a Chakra UI layout, a new badge, and sold-out status.
Build a product screen that shows price, rating stars, stock, and quantity controls, with add-to-cart setup in a React MERN full-stack app.
Develop a feature-rich product screen with a scalable product card, image gallery, and quantity controls, then display a reviews grid with star ratings and plan a backend review schema.
Define a lightweight reviews schema in the MERN app, including name, rating, comment, and a user reference, and attach it as an array to products with timestamps.
Push your local code to GitHub by staging changes, committing them, and pushing to origin master, ensuring your remote repository stays up to date and safe.
Access the chapter code on GitHub to unblock your progress, explore the branch-specific implementations, and review how the instructor solved each step.
Explore adding a product to the cart using browser local storage and the Redux store. Build familiarity with the Redux pattern while designing a responsive footer for modern websites.
Create the cart screen to add items, build a cart item component with subtotal and total calculations, and add a footer with routing and Redux setup for frontend cart functionality.
Learn to build a cart slice in a React MERN shop with Redux, persisting cart and favorites in local storage, calculating subtotals, and updating shipping and state across refreshes.
Implement cart item removal by filtering out the target id, update local storage and subtotal, and reset shipping, loading, and errors using redux slice actions.
Build and wire cart actions in a MERN app: add/remove items, set shipping, clear cart, and manage loading and errors via redux with API calls and Stripe ID.
Add a header cart icon that shows the cart items count from the redux store and links to the cart page, with responsive placement for desktop and mobile.
Implement product card add-to-cart in a React MERN app, with cart items and order summary, handling loading, errors, and an empty cart with alerts and a link to view products.
Implement add-to-cart on the product card by wiring redux actions, use toast, and a tooltip to show stock and max-quantity messages, while disabling the button when needed.
Learn to structure a React MERN cart screen with loading, error handling, and an empty-cart alert with a link to products, using Chakra UI, Redux, and React Router.
Explore building a shopping cart screen with a dynamic width layout in Chakra UI, render cart items from data, connect an order summary, and add a continue shopping link.
Build an interactive order summary component in a React MERN app using Chakra UI, Redux, and React Router, displaying subtotal, shipping, total, and a checkout button.
Implement and style a cart item component in a React MERN app using Chakra UI, Redux actions, and a dynamic stock-based quantity selector to update the cart.
build a responsive footer component using Chakra UI, incorporating social icons, color mode styles, and a multi-stack layout with links for how it works, pricing, and legal terms.
Build a responsive footer for a React MERN full-stack shop, featuring a subscribe form with a required email input, a divider, a dynamic year, and ghost social icon buttons.
Push your code to the remote repository via staging, committing, and version control. Sync changes with the remote using git push, and note that the cart functionality is implemented.
Explore the complete authentication flow—login, registration, email verification, and password reset—using a dynamic sign-in/up UI, formic validation, token-based links, and reusable components.
Design a user model and authentication flow in a MERN backend by implementing routes, middleware, and bcrypt hashing for secure login and password reset and verification emails.
Define and secure user routes in Express by implementing login, register, email verification, and password reset flows; generate and configure Json web tokens with a development-friendly expiration.
Implement a login flow in a MERN app: validate email and password, verify the user, issue a token on success, and return a secure, generic 401 on failure.
Learn to test routes with Postman by downloading the desktop app, creating collections and requests, starting a server on port 5000, and testing login with 401 unauthorized and registration process.
Register a new user by checking for an existing email and returning 400 if it exists; otherwise create the user, generate a token, and return user data.
Demonstrates registering a user in Postman by sending a json body with name, email, and password to register route, restarting the server, and verifying the response token and user data.
Test a user login and registration flow in Postman using a test user, retrieve a token and data, and implement email verification by sending a verification email during signup.
Implement a send verification email in a MERN app by wiring node mailer, building an HTML email with a token-based verification link, and hooking it into user registration.
Learn to set up a Gmail account with two-step authentication and generate a pass app password for use in node mailer with Google, guiding you to configure later steps.
Create and test a Gmail-based verification email sender using nodemailer, configuring transporter with user credentials, composing mail options (from, to, subject, html), and handling server responses.
Test verification email flows through an end-to-end registration using Postman and node mailer, delivering an HTML welcome template to a Gmail inbox after submitting user data.
Learn to implement a verify email route in a React MERN full stack app by extracting the token from the URL or header, validating with JWT, and activating the user.
Learn to implement a two-route password reset flow in a MERN stack app: handle reset requests, generate a token, and email users a secure reset link.
Demonstrates implementing a password reset flow in a MERN web shop: a reset request route and a protected reset route, validating tokens, updating the user password, and saving changes.
Install JWT decode in the client directory with npm install, then decode Json web tokens on the front end to enable token handling.
Set up a Redux user slice and actions to manage login, logout, and errors, persist user info in local storage, and handle server messages and verify email flows.
Implement user actions in a React MERN app by wiring login, logout, and register via axios calls to API endpoints, with dispatch and local storage, and clear cart on logout.
Demonstrate user actions in a React MERN app by verifying emails with a bearer token and invoking the verify email and password reset endpoints; update local storage and state.
Learn how to implement user actions for password reset in a React mern app, including sending authorization headers, patching the reset, handling data and status, and initializing the Redux store.
Create a login screen and reusable text and password fields using formic and Chakra UI, and wire up routing and form handling in the app.
Learn to build a password field in a React app using Chakra UI, with a show/hide toggle implemented via useState, input group, eye icon, and form field integration.
Develop a password forgotten form component in React using Chakra UI, manage email with useState, handle changes, and dispatch a send reset email action via Redux with a yellow button.
Build a functional login screen in a React MERN full-stack app using Chakra UI, Formik, Redux, and React Router, with password handling, toasts, and redirects to products or checkout.
Test the login flow by dispatching email and password to the API via useDispatch on submit, updating Redux user info. It redirects to products after login; notes protected route.
Implement header login functionality using redux: manage user info, sign in and logout, display cart items, and prepare admin panel link in the header.
Implement header login functionality in a React MERN app, including sign in and sign out, and a user menu showing email, order history, and profile, with admin options planned.
Implement a logout handler in the header, dispatch a Redux log out action, and show a toast notification, while tracking user info to redirect to products.
Develop the email verification screen by pulling the token from the URL, dispatching the verify email action, and handling loading, success, and error states with Redux and Chakra UI.
debug and refine the email verification screen by handling loading states, errors, and sign-in flow, while validating tokens and testing the happy path with a signed-up user.
Test the unhappy path by injecting an invalid verification token to the backend, observe a 500 error, then remove the invalid suffix to verify the email workflow using Postman.
Create a password reset screen in a React app, wiring the forgot password flow to a reset email. Use Formik, Chakra UI, and Redux with toast feedback.
Implement a password reset flow in React using Formik, validating password and confirm password, dispatching reset with the token from the URL, and guiding users to login or products.
Debug and verify the end-to-end password reset flow in a MERN stack app, from forgot password and sending reset emails to token-based password updates and frontend-backend integration.
Test the full registration and sign-in flow, verify email delivery and activation, and reset passwords. Validate database interactions and handle duplication errors to stabilize authentication.
Demonstrates a header banner notification for an email not verified, using a warning alert with icon, title, and description, controlled by use state and use effect, closable by click.
Refine the banner workflow for email verification in the React MERN app, validating sign-up and verification, and improving messaging and loading states for password resets.
Debug a reset email flow in a React MERN app by fixing server response handling, correcting typos, and refining forgot password and recovery email UX to deliver a reliable MVP.
Push chapter five work to the remote repository by committing and pushing the 22 changes across backend, middleware, and frontend (including node mailer), using the branch to review the code.
Learn to implement Google authentication in a MERN stack app, add a Google sign in button, handle login versus registration, store user data, and enable logout.
Set up Google OAuth for a React MERN web shop by creating a project, configuring the OAuth consent screen, and generating the client ID and secret.
Implement a Google login route in the mern backend to authenticate users by Google id, email, and name; create or find users, generate tokens, and send verification for new signups.
Set up a backend route in index.js to securely send the google client id from the environment to the frontend, avoiding exposure in source code.
Configure the react frontend to use the google oauth provider, fetch the google client id from the API, and wrap the app to enable google sign-in.
Implement a Redux Google login action that posts to the Google login endpoint with Google ID, email, name, and image, store the user in local storage, and update the header.
Implement a Google login on a React MERN full stack app by wiring a Google sign-in button to an onSuccess handler, fetch user data, and dispatch a login action.
Diagnose Google login in a mern full stack web shop by diagnosing account conflicts and client id setup, and test with separate business and testing accounts.
Enhance the header by displaying the user email and Google image when signed in, and integrate Google sign-in and logout with icons and conditional rendering.
Push the updated project to GitHub by staging all changes, committing with 'end of chapter six', and pushing after completing Google authentication integration.
Implement a protect route middleware that validates a JWT in the authorization header, sets request.user, and passes control with next for protected routes.
Test and debug the MERN app by signing up with a fake user, verifying email, and validating token-based access; diagnose 500 and 401 errors in the protected route middleware.
Major upgrade including now Google Auth, password reset, pagination, email verification, credit card checkout using Stripe and many more.
Hello and welcome to my course. This is a beginner’s course for building modern web applications. This is the right course for you if you are:
- Interested in web development
- Studying IT
- Interested in programming in general
- Upskilling your existing knowledge of React
- Interested how full-stack applications are build
- Solid understanding of programming and want to start with React/JavaScript
- Interested in Chakra UI.
- You are new to the world of IT and you want to start somewhere
What will you learn?
- React and React hooks
- Functional components
- State management with ReduxJs Toolkit
- Using a component library such as Chakra UI
- Styling and designing webpages
- Responsive design
- User registration and authentication (login)
- Writing an API and storing data to a database.
- Using MongoDB
- Using NodeJS
- Using Express
- Version control using Git with Github
- And many more…
This course is very practical, about 90%+ of the lessons will involve you coding along with me on this project. If you are the type of person who gets the most out of learning by doing, then this course is definitely for you.
On this course we will build an example e-commerce shop called Techlines, completely from scratch using the most popular JavaScript library called React in combination with Redux, Chakra UI, NodeJs, Express, MongoDB and many more. All you will need to get started is a computer with your favourite operating system, and a passion for learning how to build an application.