Descentralized bus crypto payment on Polygon blockchain with benefits for bus company and users
- NPM
- Install truffle
npm install truffle -g
- Copy from Repossitory
git clone https://github.com/luigicallero/bondi-mat
cd bondi-mat/
- Install dependencies by running:
sudo npm install
For deploying to the Polygon test network (Mumbai), Truffle will use truffle-hdwallet-provider
for your mnemonic and an RPC URL. Set your environment variables $RPC_URL
and $MNEMONIC
before running and make sure you have enough MATICs in your wallet (0.3 Matics should be fine; Matic Faucet: https://faucet.matic.network):
export MNEMONIC='YOUR_12_SECRET_METAMASK'
truffle migrate --network matic --reset
If you face any socket issues during deployment on Mumbai testnet try with a different testnet RPC as seen in documentation: https://docs.matic.network/docs/develop/network-details/network
Front-end is Reactjs based, to start it execute the following command from the project folder:
npm start
- Pending Scan function for BUS driver
- Prepare tests for truffle environment