GithubHelp home page GithubHelp logo

emerchant90 / domain-tron Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tronpartnerships/workshop_template_project

0.0 0.0 0.0 1.55 MB

Home Page: https://workshop-template-project-frontend-gray.vercel.app

JavaScript 3.34% TypeScript 73.43% CSS 0.56% Solidity 22.67%

domain-tron's Introduction

Prerequisites and setup:

If you are on Windows OS please use git bash for running commands.

$ npm install --global yarn

Clone the repository

Clone and run this repository you'll need Docker ,Git and Node.js installed on your computer. From your command line:

> git clone  [email protected]:adeelch9/workshop_template_project.git 

# Go into the repository
> cd workshop_template_project

Install

Install Packages for monorepo

Navigate to root directory of TNS ,run command.

$ yarn

Compile the Smart Contracts

From root directory of TNS ,run command.

$ yarn workspace contracts compile

Initiate local test network.

From root directory of TNS ,run command and keep this running in current terminal.

$ yarn workspace contracts test-network

Test the Smart Contracts

From root directory of TNS ,open new terminal and run command.

$ yarn workspace contracts test

Deploy the Smart Contracts

First you can change your custom tlds in file.

contract/migration/2_deploy_tns_contracts.js.

After updating tlds, run command.

$ yarn workspace contracts migrate

After this command run successfully. you will see in terminal logs contract address. highled in green background. copy this address and paste in file for variable TNS_CONTRACT_ADDRESS

frontend/src/config/constant/index.ts.

Start the frontEnd

From root directory of TNS ,run command.

$ yarn workspace frontend dev

now you can open on browser http://localhost:3000 to play arround with TNS.

Setup TronLink for local testing.

We need to add local network in TronLink. for this open TronLink extension in chrome. click on setting icon. and click on Nodes. click on Add Node. and fill the form as shown in image below.
img.png

Please Make Sure Host name should be only http not https.

Once node setup we need to import private key in TronLink so we can use test balance for transaction fee.

603e5eb10d3d5d53b4bfaa0282d593595683b29c0f5f8f1303e20a6fbac2b3f4


copy this private key and import as wallet in tron link. Now you are ready to test the platform.

domain-tron's People

Contributors

adeelch9 avatar emerchant90 avatar tronpartnerships avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.