Skip to content

This project is an E-commerce application developed in React ๐Ÿ› ๏ธ. It allows users to explore products ๐Ÿ›๏ธ and add them to a shopping cart ๐Ÿ›’. This project is designed with the intention of enhancing my skills with hooks such as useID(), useReducer(), useContext(), and others.

Notifications You must be signed in to change notification settings

joserafael0160/E-commerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

E-commerce

Made with love License

About ย โœฆย  Preview ย โœฆย  Features ย โœฆย  Stack ย โœฆย  Getting Started ย โœฆย  Commands ย โœฆย  Contributions ย โœฆย  License ย โœฆย  Support

If you want to read this readme in Spanish

๐Ÿ“œ About

Welcome to our E-commerce: On our site, you can explore a wide variety of products, from menโ€™s and womenโ€™s clothing to electronic equipment and jewelry.

Looking for something specific? Use our filters by category or minimum price to find what you need.

Enjoy the convenience of online shopping and discover everything we have to offer! ๐Ÿ’ป๐Ÿ›’

(Go Back To Top ๐Ÿ”)

๐Ÿ‘€ Preview

In a iPhone SE (375x667)

Project screenshot with a resolution of 375x667

(Go Back To Top ๐Ÿ”)

๐Ÿ’ฌ Features

  • Favicon Support: Support for a wide range of favicon sizes has been added, ensuring that the siteโ€™s icon displays correctly on all devices and platforms.
  • Open Graph and Twitter Tags: Open Graph and Twitter meta tags have been included, which optimize the preview of the website on social platforms like Facebook and Twitter.
  • Cross-Browser Compatibility: The web page uses the X-UA-Compatible meta tag, which helps ensure compatibility with multiple browsers, especially older versions of Internet Explorer.
  • Displaying a Product List from JSON: Created an interface to display a list of products sourced from a JSON file. Users can view available products in the store.
  • Responsive Grid Design: Products are displayed in rows and columns, adjusting to look good on both large screens and mobile devices.
  • Category Filtering: Implemented a filter that allows users to select a specific category (e.g., โ€œJewelry,โ€ โ€œElectronics,โ€ etc.). Applying the filter updates the product list to show only items from that category.
  • Price Filtering: Added functionality to filter products by price range. Users can set a minimum, and the product list automatically adjusts to display items within that range.
  • Using useContext to Avoid Passing Unnecessary Props: Managed global application state using useContext. This eliminates the need to manually pass props between components and improves efficiency.
  • Shopping Cart:
  1. Adding Products to the Cart:

    • Implemented the ability to add products to the cart from the product list. Users can click a button to add an item to their selection.
  2. Removing Products from the Cart:

    • Users can remove products from the cart if they change their minds or no longer wish to purchase a specific item.
  3. Modifying Product Quantity in the Cart:

    • Functionality allows users to adjust the quantity of a product in the cart. Useful if they want to buy more or fewer units of an item.
  4. Synchronizing Cart Changes with the Product List:

    • When users add or remove products from the cart, the changes automatically reflect in the product list. Ensures a consistent experience.
  5. Saving the Cart in localStorage:

    • By saving the cart in local storage, users can retrieve their selection even after page reloads. Improves usability and convenience.

(Go Back To Top ๐Ÿ”)

๐Ÿงฐ Stack

  • React - A JavaScript library for building interactive user interfaces.
  • Vite - A fast and lightweight development environment for modern web applications.
  • ESLint - An open-source tool that helps you find and fix problems in your JavaScript code.

(Go Back To Top ๐Ÿ”)

๐Ÿš€ Getting Starter

  1. Fork or clone this repository
git clone [email protected]:joserafael0160/E-commerce.git
  1. Install the dependencies:
  • I used bun to install and manage the dependencies.
# Install bun for MacOS, WSL & Linux:
curl -fsSL https://bun.sh/install | bash

# Install bun for Windows:
powershell -c "iwr bun.sh/install.ps1|iex"

# Install with bun:
bun install
  • or you can use pnpm:
# Install pnpm globally if you don't have it:
npm install -g pnpm

# Install dependencies:
pnpm install
  1. Run the development server:
# Run with bun:
bun run dev

# Run with pnpm:
pnpm run dev

(Go Back To Top ๐Ÿ”)

๐Ÿงž Commands

Command Action
โš™๏ธ dev Starts the local development server.
โš™๏ธ build Builds the production version to ./dist/.
โš™๏ธ lint Runs ESLint to find issues in your JavaScript code.
โš™๏ธ preview Previews the local build.
โš™๏ธ predeploy Generates the production version before deploying.
โš™๏ธ deploy Deploys the site to GitHub Pages from the dist folder.

(Go Back To Top ๐Ÿ”)

๐Ÿค Contributions

Contributions are always welcome! Whether youโ€™re reporting bugs, requesting new features, or improving existing functionalities, your help is greatly appreciated.

If you have any suggestions that could improve the project, please make a fork of the repository and create a pull request. You can also simply open an issue with the โ€œenhancementโ€ label.

Here is a quick guide:

  1. Make a fork of the Project
  2. Clone your fork (git clone <URL of the fork>)
  3. Add the original repository as remote (git remote add upstream <URL of the original repository>)
  4. Create your Feature Branch (git switch -c feature/NewFeature)
  5. Make your Changes (git commit -m 'Add: some NewFeature')
  6. Push to the Branch (git push origin feature/NewFeature)
  7. Open a pull request

(Go Back To Top ๐Ÿ”)

๐Ÿ”‘ License

MIT

(Go Back To Top ๐Ÿ”)

๐Ÿ™ Support

Don't forget to leave a star โญ๏ธ

(Go Back To Top ๐Ÿ”)



โœŒ๏ธ

A project created by @joserafael0160

About

This project is an E-commerce application developed in React ๐Ÿ› ๏ธ. It allows users to explore products ๐Ÿ›๏ธ and add them to a shopping cart ๐Ÿ›’. This project is designed with the intention of enhancing my skills with hooks such as useID(), useReducer(), useContext(), and others.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published