CartConnect is an e-commerce shopping cart application built with React-Redux.
- Demo
- Features
- Technologies Used
- Getting Started
- Available Scripts
- How It Works
- Future Improvements
- Challenges and Learnings
You can view a live demo of the project CartConnect.
- Browse products from a sample store.
- Add or remove products from the shopping cart.
- View cart summary and total amount.
- Responsive design for optimal viewing on various devices.
- React (for building the UI)
- Redux Toolkit (for state management)
- Tailwind CSS (for styling)
- Fake Store API (for fetching product data)
Follow these steps to run the project locally:
Ensure that Node.js and npm are installed on your machine. If not, you can download them from here.
-
Clone the repository:
git clone https://github.com/Jiteshiyu/CartConnect.git cd CartConnect
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000
to see the app in action.
npm run dev
: Start the development server.npm run build
: Build the app for production.npm run preview
: Preview the production build locally.
The CartConnect app uses an external API to fetch and display product data.
- Fetching Product Data: The app sends a GET request to the Fake Store API, retrieving data such as product names, prices, and images.
- Cart Functionality: Users can add products to their cart and remove them as needed.
- Displaying Data: The app shows a list of products and allows users to manage their shopping cart.
- Responsive Design: The layout adjusts for different screen sizes using Tailwind CSS.
- Add user authentication for a personalized shopping experience.
- Implement a search functionality to find products more easily.
- Improve the user interface with additional animations and graphics.
- Add error handling for failed API requests.
- State Management: Utilizing Redux Toolkit for state management helped streamline the data flow throughout the app.
- API Integration: Integrating the Fake Store API required handling asynchronous requests effectively.
- Responsive Design: Ensuring a responsive layout across devices required careful use of Tailwind CSS utilities.
If you liked the project, give it a 🌟 on the repo!
Connect with me: