This project builds a web app with an admin dashboard for managing drivers. Admins can create driver accounts, assign tasks, and approve opt-in requests, streamlining logistics operations. The admin dashboard and the smart contract are inspired by Hardhat's dApp starter project Hardhat Boilerplate.
The first things you need to do are clone this repository and install its dependencies:
git clone https://github.com/natybkl/logistics-dApp-on-ethereum.git
cd logistics-dApp-on-ethereum
npm installOnce installed, let's run Hardhat's testing network:
npx hardhat nodeThis should bring a result similar to this:
Then, on a new terminal, go to the repository's root folder and run this to deploy your contract:
npx hardhat run scripts/deploy.js --network localhostFinally, we can run the admin dashboard with:
cd admin
npm install
npm startOpen http://localhost:3000/ to see your Dapp. You will
need to have Coinbase Wallet or Metamask installed and listen to
localhost 8545. If you are going to use Metamask, the Chain Id used for localhost 8545 is 331337.