Skip to content

A MERN-based T-Shirt shopping website with user authentication, product browsing, cart, checkout, and an admin panel for managing products and categories.

Notifications You must be signed in to change notification settings

RanveerC22/T-Shirt-Shopping-Website-using-MERN-Stack-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 

Repository files navigation

T-Shirt Shopping Website (MERN Stack)

This project is an online clothing shopping system built using the MERN Stack.
It provides a complete user and admin workflow for browsing, selecting, and managing products.


Repository Structure

  • projectbackend
  • projectfront

Project Overview

User Side

  • User must first sign up and then sign in.
  • After login, the user lands on the Home page.
  • Home page displays all products such as t-shirts, hoodies, shorts, etc.
  • Users can view product details and add any item to the cart.
  • Cart page allows reviewing selected items.
  • Payment gateway option appears at checkout.

Admin Side

  • Admin logs in using an email with admin privileges.
  • Admin can:
    • Create products
    • Update products
    • Delete products
    • Manage categories
  • Admin pages open only when the logged-in email has role = 1.
  • Default role for any new user is 0 (normal user).
  • To make a user an admin, role must be updated manually in the database.

Features

  • User authentication (Sign Up / Sign In)
  • Role-based access control (User / Admin)
  • Product browsing and details
  • Add to cart functionality
  • Checkout and payment integration
  • Admin product and category management
  • MERN stack structure with separate frontend and backend folders

Tech Stack

  • MongoDB
  • Express.js
  • React.js
  • Node.js

Summary

A simple MERN-based shopping website providing a complete workflow for users to browse and purchase clothing, while admins can manage products and categories through role-based access.

About

A MERN-based T-Shirt shopping website with user authentication, product browsing, cart, checkout, and an admin panel for managing products and categories.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published