The SupplyChain DApp is a decentralized application (dApp) built on the Ethereum blockchain. It aims to revolutionize supply chain management by providing transparency, immutability, and efficiency. This dApp facilitates tracking and verifying the provenance, authenticity, and quality of products throughout the supply chain.
These instructions will guide you through the setup, installation, local testing, and deployment of the SupplyChain DApp on the Sepolia test network.
Before beginning the setup process, ensure you have the following tools and extensions installed on your system:
- Node.js (version 18.17 or higher)
- Yarn (version 1 or 2+)
- Git
- MetaMask or a similar Ethereum wallet browser extension
Follow these steps to clone the repository and install the necessary dependencies:
-
Clone the Repository:
git clone https://github.com/Lukman-01/ScaffoldEth-dApp.git cd ScaffoldEth-dApp
-
Install Dependencies:
yarn install
This command installs all the dependencies listed in the
package.json
file.
To deploy your dApp to the Sepolia test network, follow these steps:
-
Configure Environment Variables:
Set up the required environment variables in a
.env
file in the project root:ALCHEMY_API_KEY=your_alchemy_api_key_here DEPLOYER_PRIVATE_KEY=your_wallet_private_key_here ETHERSCAN_API_KEY=your_etherscan_api_key_here
-
Configure Your Ethereum Wallet:
Ensure your MetaMask or other Ethereum wallet is connected to the Sepolia test network.
-
Acquire Test Ether for Sepolia:
Get test Ether from a faucet to cover transaction fees on the Sepolia network.
-
Deploy to Sepolia:
yarn deploy --network sepolia
This command deploys your smart contracts to the Sepolia test network.
After deployment, you can start the NextJS application to interact with your smart contracts:
yarn start
Access the application at http://localhost:3000
and explore the functionalities of your dApp.