Tron is an open source blockchain platform that lets developers build smart contracts and dapps.
For building Tron decentralized application you need deploy smart contract onto Tron Network. See this tutorial for detailed guide on how to deploy the smart contract on a Tron network and run node application.
Before starting you need to change a few things in index.js file,
- Line 18: - Enter Private key of your account
- Line 22: - Enter your Tron account address
- Line 24: - Enter address where your smart contract is deployed.
After changing open up terminal or command prompt and run below command.
npm install
After all node-modules installled then run below command in your terminal.
node index.js
You will see message like this if your application is successfully running,
Server is started at 8001...
Then go to 127.0.0.1:8001 in your browser.