Code Monkey home page Code Monkey logo

achalofficial / martify Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 187 KB

Mart App is a simple e-commerce application built with React and Redux. Users can browse through a list of products, add items to their shopping cart, and view their cart contents. This project demonstrates the integration of Redux for state management in a React application and showcases basic usage of Redux actions, reducers, and the Redux store.

HTML 28.76% JavaScript 49.63% CSS 21.61%
react reactjs redux-toolkit

martify's Introduction

Martify

This project is a simple mart app built using React and Redux. It allows users to view products and add them to a shopping cart.

Installation

To run the project locally, follow these steps:

  1. Clone the repository to your local machine: git clone https://github.com/your-username/mart-app.git

  2. Navigate to the project directory: cd mart-app

  3. Install dependencies: npm install

  4. Start the development server: npm start

  5. Open http://localhost:3000 in your browser to view the app.

Project Structure

The project structure is organized as follows:

mart-app/ ├── src/ │ ├── components/ │ │ ├── Product.js │ │ └── Cart.js │ ├── store/ │ │ ├── actions/ │ │ │ └── actionTypes.js │ │ ├── reducers/ │ │ │ └── rootReducer.js │ │ │ └── cartReducer.js │ │ └── store.js │ ├── App.js │ ├── index.js │ └── index.css ├── public/ │ └── index.html ├── package.json └── README.md

Copy code

Modifications

  1. Redux Integration: Implemented Redux for state management, including action creators, reducers, and the Redux store.

  2. Product Component: Created a Product component to display individual product items.

  3. Cart Component: Implemented a Cart component to display the shopping cart and added items.

  4. Styling: Applied CSS styles to the components for better visual presentation.

  5. README: Added this README file to provide project details and modifications made.

Usage

  • Click on the "Add to Cart" button on the Product component to add items to the shopping cart.
  • View the shopping cart items in the Cart component.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request for any enhancements or bug fixes.

License

This project is licensed under the MIT License - see the LICENSE file for details

martify's People

Contributors

achalofficial avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.