Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.1 KB

README.md

File metadata and controls

35 lines (29 loc) · 1.1 KB

Installing dependencies

  1. In the project root directory, run
git clone https://github.com/TokenySolutions/T-REX.git
  1. Change the directory to migrations in the project root directory and run the command below
cd ./migrations && npm ci
  1. Change the directory to T-REX in the project root directory and run the command below
cd ./T-REX && npm ci

Compiling and deploying T-Rex ecosystem to local blockchain

  1. In a separate terminal tab or window, execute the command below in the project root directory and let it run
cd ./migrations && npm run hardhat:node
  1. In another terminal tab or window, change the directory to T-REX in the project root directory and run
cd ./T-REX && npx hardhat run --network localhost ../migrations/deploy.ts

[Optional]

To run the seed script, change the directory to migrations in the project root directory and run the command below

cd ./migrations && npm run token:ether

Stopping the network

  1. To stop the network, you can just close the terminal session where you ran npm run hardhat:node