- Introduction
- Project Structure
- Features
- Technologies
- Installation
- Usage
- Testing
- Deployment
- Contributing
DAPP Store is a decentralized e-commerce platform where users can purchase products using cryptocurrency by connecting their MetaMask wallet. This project combines the convenience of online shopping with the security and transparency of blockchain technology.
The repository is organized into the following folders:
frontend
: Contains the React frontend of the application.contracts
: Contains the Solidity smart contract files.test
: Contains test cases for the smart contracts.script
: Contains the deployment script for the local server.
- Decentralized e-commerce platform
- Purchase products using cryptocurrency
- Connect MetaMask wallet
- Secure transactions with blockchain technology
- Frontend: React
- Smart Contracts: Solidity
- Blockchain: Ethereum
- Wallet: MetaMask
- Library: ether.js
To set up and run the project locally, follow these steps:
- Node.js and npm installed
- MetaMask extension installed in your browser
- Ethereum wallet with some test Ether (e.g., from a testnet faucet)
-
Clone the repository:
git clone https://github.com/Hassaan-Qaisar/dapp_store cd dapp_store
-
Navigate to the
contracts
directory and install dependencies:cd contracts npm install
- Navigate to the
frontend
directory, install dependencies, and start the React frontend:cd ../frontend npm install npm start
- Open your browser and navigate to
http://localhost:3000
. - Connect your MetaMask wallet to the application.
- Browse products and make purchases using your cryptocurrency.
- Navigate to the
test
directory and run the tests:cd ../test npx hardhat test
- Navigate to the
script
directory and run the deployment script:cd ../script npx hardhat node
Contributions are welcome! If you would like to contribute to this repository, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-name
). - Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-name
). - Create a new Pull Request.