
Explore a MERN stack refurbished goods marketplace demo, featuring user registration, product listing with images, admin approval, and bid-based buying with notifications.
Set up a React front end with create-react-app in a client folder, run with npm start on localhost:3000, and tailor the app by editing src/app.js, index.html, and index.css.
Install the Ant Design library and explore the button styles, including primary, default, dash, text, and link, and configure the theme with the config provider for primary color and hover.
Install Tailwind CSS with the entity UI library, configure Tailwind and preflight, then restart the server. Center content using flex utilities and apply a white background with a primary color.
Design and implement the registration page of the MERN stack refurbished goods marketplace app, including front-end authentication screens, form items for name, email, and password, and client-side validation.
Replicate the login form from the last lecture by converting the registration code, remove the name field, and fix styling with the theme or index.css for color and shadow consistency.
Initialize the backend of the MERN stack refurbished goods marketplace app by creating a node server, connecting to MongoDB, and building APIs to receive data and store it.
Learn to connect Node.js with MongoDB Atlas using the connection URL and a .env file, then restart the backend server to apply changes.
Create and export a mongoose-based user model in the server, with name, email, and password fields and timestamps, to power the authentication back-end APIs for login and registration.
Build the registration api endpoint using express router and a user model. Check existing users by email, hash passwords with bcrypt, and save new users with a structured try-catch response.
Learn to connect a frontend to a Node.js backend for a registration flow, building a reusable API layer with axios to register users in MongoDB and prepare for login.
Build and test the login API endpoint with async try-catch, validate responses, trim emails, handle errors like user not found or invalid password, and store the JWT in local storage.
Learn how authorization and protected routes secure APIs using JWT tokens and middleware. Implement a get current user endpoint with token validation and user id retrieval.
Learn to implement a protected route in a MERN app by validating tokens with get current user, guarding pages, and redirecting unauthorized users to login.
Learn to implement a default layout for a mern stack marketplace app, featuring a header with the project title, user info, and a protected page content region.
Set up redux toolkit to manage global loaders in a MERN app by creating a loaders slice, configuring the store, and providing it with react-redux for cross-page spinners.
Design a fixed, full-screen spinner overlay that appears during API calls, controlled by a redux loader state. Refactor user data into a centralized redux user slice for app-wide access.
Learn to access redux state on the home page with useSelector and a user variable, rendering user.name when available and sharing data across components.
Develop the profile page to support an ad product form with multi-image uploads and detailed fields (title, description, category, price, age, bill, warranty, box, accessories) and owner contact options.
Design a functional product form for the MERN stack marketplace app, with general and images tabs. Build fields for name, description, price, category, age, and addons with validation.
Hello and welcome to the course on building a refurbished goods selling platform using the MERN stack!
In this course, we will cover a range of topics, including working with Tailwind CSS and AntD parallelly for styling purposes, implementing Redux and Redux Toolkit for state management, and integrating React, Node, MongoDB, and Cloudinary.
We will also cover how to create separate user interfaces for sellers, buyers, and admins. The admin will have access to the entire application, while the seller will have access to their own products and bids. Every product must be reviewed and approved by the admin to sell on the platform.
We will also cover how to handle multiple image uploads using Cloudinary, Multer, and Node JS. Buyers can see the available products in the portal, filter the products, place bids, and use the bids/quotes functionality for the products.
Throughout the course, we will provide 24/7 QA support and code access to help you along the way. We will also cover how to implement trigger notifications functionality for all the actions in the application.
This course is suitable for developers who have some experience working with the MERN stack and want to learn how to build a refurbished goods-selling platform with complex MongoDB queries and different user interfaces for sellers, buyers, and admins. By the end of this course, you will have the skills and knowledge needed to create a fully functional refurbished goods-selling platform with real-time notifications and access controls.
What is MERN Stack?
MERN Stack is a collection of powerful technologies and robust, used to develop scalable master web applications comprising backend, front-end, and database components. It is JavaScript that is used for the faster and easier development of full-stack web applications. MERN Stack is a technology that is a user-friendly full-stack JavaScript framework for building applications and dynamic websites.
MERN Stack consists of four main components or can say four main technologies:
M stands for MongoDB ( Database ), mainly used for preparing document databases and is a NoSQL (Non-Structured Query Language ) Database System
E stands for Express, mainly used for developing Node.js web framework
R stands for React, mainly used for developing a client-side JavaScript framework
N stands for js, mainly used for developing the premier JavaScript web server
Each of these four technologies plays an important role in providing an end-to-end framework for the developers. Even these four technologies play an important role in the development process of web applications.
Before MERN stack, it was earlier named as MEAN stack, MERN Stack is one of the variations of MEAN, here MEAN is also comprises of four components or say four different technologies, i.e., M is for MongoDB, ' E ' is for Express, ' A ' is for Angular.js, and ' N ' is for Node, here if you will observe, then you can identify that in MEAN, ' A ', i.e., Angular.js is replaced by ' R ', i.e., React.js in MERN, the main reason behind is - MERN Stack is mainly used for faster development of smaller applications as compared with MEAN, MEAN stack is a mainly better option for large-scale applications. Still, it takes more time for the development of smaller applications. They also both have different structures comparatively.