React E-Commerce Project

This project is aimed at implementing minimal e-commerce functionality using React. The primary functionalities include displaying products, adding them to the cart, adjusting the cart, authentication, Detailed product pages, and ensuring clean code, responsiveness, and cross-browser compatibility.

Features

  1. Product Display: Users can browse through a selection of products displayed with relevant details such as name, price, and image.
  2. Add to Cart: Users have the ability to add products to their cart for purchase.
  3. Cart Adjustment: Users can adjust the quantity of products in their cart or remove products entirely, providing flexibility and control over their shopping experience.

Additional Features

  1. User Authentication and Registration: Secure user authentication and registration system to allow users to create accounts and log in securely.
  2. Product Details Page: Detailed product pages providing additional information such as product descriptions, specifications, and customer reviews.
  3. Checkout: Seamless checkout process enabling users to review their cart, select shipping options, and complete their purchase securely.

Project Structure

  • src/: Contains the source code for the React application.
    • pages/: Contains pages related to the main functionalities such as product listing, cart, and additional pages if added. APIs or managing asynchronous operations.
    • store/: Contains Redux store configuration and slices.
    • services/: Includes service functions for interacting with
    • ui/: Houses UI-related components, styles, for the homepage design and Houses reusable components for displaying products and managing the cart.
    • App.js: The main component where routing and global state management are handled.
  • public/: Contains static assets such as images or favicon.

Setup Instructions

  1. Clone the repository: git clone https://github.com/HasanMt12/E-commerce-Functionality
  2. Navigate to the project directory: cd E-commerce-Functionality
  3. Install dependencies: npm install
  4. Run the development server: npm run dev
  5. Open http://localhost:5173 to view it in the browser.

Development Guidelines

  • Clean Code: Follow best practices for writing clean, maintainable code. Ensure readability and consistency.
  • Responsive Design: Implement responsive layouts using CSS or CSS frameworks like Bootstrap to ensure the application works well across various devices and screen sizes.
  • Cross-Browser Compatibility: Test the application on different browsers (Chrome, Firefox, Safari, Edge, etc.) to ensure consistent behavior and appearance.
  • Git Workflow: Follow a structured Git workflow with meaningful commit messages. Create feature branches for new functionalities and submit pull requests for review.

License

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