This is the frontend for StarkMart, a modern e-commerce web application. Built with React, Redux Toolkit, and Tailwind CSS, it provides a seamless shopping experience with authentication, product browsing, cart, checkout, and Stripe payments.
- Modern, responsive UI with Tailwind CSS
- State management with Redux Toolkit
- Authentication and protected routes
- Product listing, filtering, and details
- Shopping cart and checkout flow
- Stripe payment integration
- Admin dashboard for managing products, orders, and users
- React.js (Create React App)
- Redux Toolkit
- React Router
- Tailwind CSS
- Stripe.js
- React Toastify
- Node.js (v16+ recommended)
- npm or yarn
- Navigate to the frontend folder:
cd Frontend - Install dependencies:
npm install - Start the React app:
The app will run on
npm starthttp://localhost:3000and proxy API requests to the backend.
npm start— Start React development servernpm run build— Build for productionnpm test— Run tests
src/
app/ # Redux store, constants
features/ # Redux slices & API logic (auth, cart, product, order, user)
pages/ # Main pages (Home, Login, Cart, Checkout, etc.)
common/ # Shared UI components
navbar/ # Navigation bar
Images/ # Static images
public/ # Static files
tailwind.config.js
The frontend expects the backend API to be running (see backend repo for setup). API endpoints are proxied via http://localhost:8080 by default.
This project is licensed under the ISC License.