Skip to content

KaranNegi20Feb/Shopping-Cart-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopping Cart Management System

This project is a Shopping Cart Management System built using React and Redux. It provides a simple interface to manage a shopping cart, allowing users to add, remove, and update items. The project also uses Axios for HTTP requests and json-server to serve a mock database.

Table of Contents Features Installation Running the Project Project Structure Contributing License Features Add items to the cart Remove items from the cart Update item quantities Fetch and persist cart data using a mock backend Installation To get started with the project, follow these steps:

Clone the repository

sh Copy code git clone https://github.com/yourusername/shopping-cart-management-system.git cd shopping-cart-management-system Install dependencies

sh Copy code npm install npm install axios Set up json-server Install json-server globally if you haven't already:

sh Copy code npm install -g json-server Create a db.json file in the root directory with the following content:

json Copy code { "cartItems": [] } Running the Project To run the project, follow these steps:

Start the json-server

sh Copy code json-server --watch db.json --port 8080 Start the React application

sh Copy code npm start The application will be accessible at http://localhost:3000.

Project Structure Here's a brief overview of the project's structure:

java Copy code shopping-cart-management-system/ ├── public/ ├── src/ │ ├── actions/ │ ├── components/ │ ├── reducers/ │ ├── store/ │ ├── App.js │ ├── index.js │ └── ... ├── db.json ├── package.json └── README.md src/actions/: Contains Redux action creators. src/components/: Contains React components. src/reducers/: Contains Redux reducers. src/store/: Contains the Redux store configuration. db.json: Mock database file used by json-server. Contributing We welcome contributions! Please follow these steps to contribute:

Fork the repository Create a new branch (git checkout -b feature/your-feature) Make your changes Commit your changes (git commit -m 'Add some feature') Push to the branch (git push origin feature/your-feature) Open a pull request License This project is licensed under the MIT License. See the LICENSE file for more information.

Happy coding! If you have any questions or run into any issues, feel free to open an issue on the GitHub repository.

About

This is a React-Redux based Shopping Cart management system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published