A decentralized application (DApp) for managing and purchasing games using Ethereum smart contracts. This project allows users to add games to a blockchain and purchase them using Ether.
- Add Games: Admins can add new games to the blockchain.
- Buy Games: Users can purchase games from the blockchain.
- React: For the frontend.
- Ethers.js: For interacting with Ethereum smart contracts.
- Ethereum: For the blockchain.
- Solidity: For writing smart contracts.
- MetaMask: For managing Ethereum accounts.
- Node.js and npm installed
- MetaMask browser extension installed
- A local or test Ethereum network (like Ganache)
-
Clone the Repository
git clone https://github.com/yourusername/game-store-dapp.git cd game-store-dapp -
Install Dependencies
npm install
-
Configure Smart Contract Ensure your smart contract is deployed and the contract address is updated in src/scdata/deployed_addresses.json.
npm start
-
Run the Application
npm run dev
- Navigate to the "Add Game" page.
- Fill out the form with the following details:
- Game Name: The name of the game.
- Game ID: A unique identifier for the game.
- Game Studio: The studio that developed the game.
- Game Price (in Ether): The price of the game in Ether.
- Game Description: A brief description of the game.
- Click on the "Add Game" button to submit the form.
- The game will be added to the blockchain and the backend.
- Navigate to the "Buy Game" page.
- Enter the Game ID of the game you want to purchase.
- Enter the Purchase Price (in Ether).
- Click on the "Buy Game" button to complete the transaction.
- Confirm the transaction in MetaMask.
Make sure your MetaMask wallet is connected and has enough Ether for transactions.
-
Implement Badge Distribution Using NFT Technology
- Add functionality for distributing badges using NFT technology.
-
Implement Category System to Sort Games
This project is licensed under the MIT License. See the LICENSE file for details.
