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.
- projectbackend
- projectfront
- 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 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.
- 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
- MongoDB
- Express.js
- React.js
- Node.js
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.