Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

reactjs-full-course/react-redux-shopping-cart

Repository files navigation

react-redux-shopping-cart

A simple and elegant shopping cart application built with React and Redux Toolkit. This project demonstrates core concepts of state management and modern front-end development practices.

Features

  • State Management: Utilizes Redux Toolkit for efficient state management.
  • Add/Remove Items: Users can add and remove items from the cart.
  • Price Calculation: Displays the total price of items in the cart.
  • Persist State: Cart state persists across page reloads.

Video Tutorial

🎥 Watch the video tutorial on YouTube
In this tutorial, you will learn how to set up and use the shopping cart application from scratch. The video will be available soon!

Setup

Follow these steps to get the project up and running on your local machine:

  1. Clone the repository:
    git clone https://github.com/kouorsh/react-redux-shopping-cart.git
  2. Navigate to the project directory:
    cd react-redux-shopping-cart
  3. Install dependencies:
    npm install
  4. Start the development server:
    npm run dev

Technologies Used

  • React - A JavaScript library for building user interfaces.
  • Redux Toolkit - A set of tools for efficient Redux development.
  • Vite - A fast build tool and development server.

TODO List

  • Write Tests: Add unit and integration tests for components and Redux actions/reducers.
  • Improve Documentation: Expand the documentation with examples and detailed usage instructions.
  • Add User Authentication: Implement user login and registration features.
  • Enhance UI: Improve the user interface with more advanced designs and features.
  • Optimize Performance: Analyze and optimize the app’s performance for better efficiency.
  • Add Features: Introduce additional features like product search, filters, and user reviews.
  • Internationalization: Add support for multiple languages.
  • Accessibility Improvements: Ensure the application is accessible to users with disabilities.
  • Add a Testing Framework: Set up a testing framework (e.g., Jest, React Testing Library) for end-to-end testing.
  • CI/CD Pipeline: Set up Continuous Integration and Continuous Deployment pipelines.
  • Implement Error Handling: Add comprehensive error handling for API requests and user interactions.
  • Add Redux DevTools Integration: Ensure compatibility with Redux DevTools for easier debugging.

Contributing

We welcome contributions from the community! Here’s how you can contribute:

  1. Fork the repository to your GitHub account.
  2. Clone your forked repository to your local machine:
    git clone https://github.com/your-username/react-redux-shopping-cart.git
  3. Create a new branch for your feature or fix:
    git checkout -b your-feature-branch
  4. Make your changes and commit them with a descriptive message:
    git add .
    git commit -m "Add a descriptive commit message"
  5. Push your changes to your forked repository:
    git push origin your-feature-branch
  6. Open a pull request on the main repository and describe the changes you’ve made.

Please make sure your code adheres to the Code of Conduct and follows the contributing guidelines.

Code of Conduct

Please read and follow our Code of Conduct to ensure a positive and inclusive environment for everyone.

License

This project is licensed under the MIT License.

Contact

If you have any questions or suggestions, feel free to reach out:

Acknowledgements

  • React - The JavaScript library for building user interfaces.
  • Redux Toolkit - The official, recommended way to write Redux logic.
  • Vite - A fast build tool and development server.

About

A simple shopping cart application built with React and Redux Toolkit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published