This is a simple React application for managing a shopping cart. This project was a test task for a hiring drive at Scandiweb
- Routing: The application uses React Router for navigation and routing.
- Add to Cart: Users can add items to the cart by clicking on the "Add to Cart" button on the product page.
- Cart Management: Users can view the items in their cart, update the quantity of items, and remove items from the cart.
- Local Storage: The cart data is stored in the browser's local storage so that it persists even after the user closes the browser.
- GraphQL: The application uses GraphQL to fetch product data from the server.
To run the application, you need to have the following installed on your system:
- This web app expects you to provide a GraphQL backend at port 4000
- Node.js
- npm or yarn
- Clone the repository.
- Navigate to the project directory.
- Run
npm install
to install the required packages. - Run
npm start
to start the application. - Open your web browser and navigate to http://localhost:3000/ to view the app.
This is a simple but fully functional React application for managing a shopping cart. The application uses modern web development technologies such as React, GraphQL, and local storage to provide a seamless user experience. We hope that you find this project useful and informative.