Skip to content

tiagogalvao7/eCommerce-Web3-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Run Locally

๐Ÿ›’ eCommerce Project

This project is an e-commerce platform with added Web3 features, allowing users to purchase products using cryptocurrency.

Clone the project

  git clone https://github.com/tiagogalvao7/eCommerce-Web3-Project.git

Go to the project directory

  cd eCommerce

Install dependencies

  npm install

  or

  npm install react-material-ui-carousel --save --legacy-peer-deps

Configure environment variables

๐Ÿ“„ Create a .env file in the root of the project:

  REACT_APP_RECIPIENT_WALLET_ADDRESS=YOUR_ETHEREUM_WALLET_ADDRESS

Replace YOUR_ETHEREUM_WALLET_ADDRESS with the public Ethereum wallet address that will receive ETH payments. The application is configured to use the Sepolia testnet.

Start the server

  npm start

The server should now be running. You can access the application by opening a web browser and entering the following URL:

  http://localhost:3000

New Features & Implementations

๐Ÿš€ Web3 Integration

  • Wallet Connection: Integration with the user's Web3 wallet (e.g., MetaMask).
  • Cryptocurrency Payments: Allows the purchase of products directly with Ethereum (ETH) on the Sepolia testnet.
  • Transaction Status Handling: Real-time feedback for pending, successful, and error transactions.

๐Ÿ›’ Checkout Flow

  • Billing Form: Complete billing form with validation before initiating the blockchain transaction.
  • Dynamic โ€˜Buy with ETHโ€™ Button: Button enabled only after wallet connection and form completion, with loading status during transaction.

๐Ÿ“ธ Screenshots

Screenshot Description
Product Page - Connect Wallet Product Page with โ€˜Connect Wallet to Buyโ€™ button
Completed Purchase Wallet connected
Checkout Page Checkout Page with form and โ€˜Connect Wallet to Buyโ€™ button
MetaMask Confirmation Transaction confirmation pop-up in MetaMask

About

Hustlr project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published