Frontend client for the Clothify e-commerce application — a modern online clothing store built with the MERN stack (MongoDB, Express, React, Node). This project handles the user interface, product browsing, cart flows, authentication screens, and more.
🔗 Live Demo: (https://mern-clothify.pages.dev/) 📦 Backend API: https://github.com/YasithWijesuriya/MERN-Clothify-backend
- Product listing and browsing
- Shopping cart operations (add/remove/update)
- User authentication (signin & signup)
- Order placement UI (connects to backend API)
- Responsive mobile & desktop layout
- Client-side routing with React Router
This repo contains only the frontend UI — the backend logic lives in the linked backend repo.
- React — UI library
- Vite — Build tool for fast development
- React Router — Client routing
- CSS — Styling
- Axios / Fetch — API communication
- Context / State Management — For cart & auth state
-
Clone the repository
git clone https://github.com/YasithWijesuriya/MERN-clothify-Frontend.git cd MERN-clothify-Frontend -
Install dependencies
npm install -
Start development server
npm run dev
Your frontend will be running at http://localhost:5173 by default.
-
Environment variables (Optional) If needed, create a .env file to point API calls to your backend:
VITE_API_URL=http://localhost:5000/api MERN-clothify-Frontend/ ├── public/ # Static assets ├── src/ │ ├── components/ # UI components (Navbar, ProductCard, Cart, etc.) │ ├── pages/ # Screen views (Home, Product, Cart, Signin, etc.) │ ├── context/ # State management (auth, cart state) │ ├── services/ # API service functions │ ├── App.jsx # Main application file │ └── main.jsx # Entry point (Vite) ├── .gitignore ├── package.json └── vite.config.js
This frontend communicates with the Clothify backend API for products, users, carts, and orders: https://github.com/YasithWijesuriya/MERN-Clothify-backend