Starting MkhondeChain Backend Environment"
echo "➡️ 1. Starting Hardhat blockchain (http://127.0.0.1:8545)..." cd ~/Desktop/INCLUDES/mkhondechain/smart-contract -Bash ~ npx hardhat node
sleep 2
echo " 2. Deploying smart contract to local blockchain..." cd ~/Desktop/INCLUDES/mkhondechain/smart-contract Bash ~ npx hardhat run scripts/deploy.js --network localhost
echo " 3. Ensuring MongoDB is running..." sudo service mongod start
c echo "4. Starting backend server..." cd ~/Desktop/INCLUDES/mkhondechain/backend bash ~ "npx run start"
sleep 2
echo " 5. Starting ngrok tunnel (public URL for Africa's Talking)..." bash ~ "npx ngrok http 4000; exec bash"
echo "All systems launched!" echo "Copy the ngrok HTTPS link and paste it into Africa’s Talking Sandbox → USSD Callback URL: /ussd"