-
masterbranch: Contains the stable version with smart contracts deployed on the Sepolia testnet. This branch is production-ready and suitable for testing with real testnet transactions. -
feature-resertifikasi-logicbranch: Contains experimental resertifikasi (re-certification) transaction logic. This branch only works in local development using Hardhat due to its experimental nature. The resertifikasi feature has not been deployed to the testnet as it's still under development and testing.
Note: The separation of branches allows for stable production deployment on the master branch while keeping experimental features isolated for local testing and development.
- Hardhat for local blockchain development and testing.
- Sepolia test network for Ethereum deployment and transactions.
- MetaMask for browser extension wallet management.
- Ether.js for interacting with the Ethereum blockchain.
- React.js for building the frontend interface.
- Firebase for handling off-chain backend services.
- IPFS for decentralized off-chain file storage.
- Slither for analyzing security vulnerabilities and issues in smart contracts.
-
Clone this repository and checkout master branch:
git clone https://github.com/artyaaryatama/obat-tradisional-blockchain.git cd obat-tradisional-blockchain git checkout master -
Install dependencies for the frontend and smart contracts:
npm install
-
The smart contract is already deployed on Sepolia testnet. Configure your MetaMask to connect to Sepolia network.
-
Run the frontend application:
npm run dev
-
Clone this repository and checkout feature branch:
git clone https://github.com/artyaaryatama/obat-tradisional-blockchain.git cd obat-tradisional-blockchain git checkout feature-resertifikasi-logic -
Install dependencies:
npm install
-
Start local Hardhat node:
npx hardhat node
-
Deploy smart contract locally:
npx hardhat run scripts/deploy.js --network localhost
-
Configure MetaMask to connect to your local Hardhat network (usually http://localhost:8545).
-
Run the frontend application:
npm run dev
