- In the project root directory, run
git clone https://github.com/TokenySolutions/T-REX.git
- Change the directory to
migrations
in the project root directory and run the command below
cd ./migrations && npm ci
- Change the directory to
T-REX
in the project root directory and run the command below
cd ./T-REX && npm ci
- 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
- 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
- To stop the network, you can just close the terminal session where you ran
npm run hardhat:node