Skip to content

Very simple DApp on Tron Blockchain built with Node.js

Notifications You must be signed in to change notification settings

YudizBlockchain/Tron-DAPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developing DApp on Tron Blockchain

Tron is an open source blockchain platform that lets developers build smart contracts and dapps.

Getting Started

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.

Prerequisites

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

Starting Server

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.

Demo