Make sure to create a .env file before running the project Example of .env file is as below,
PORT=4001
ETHEREUM_CONTRACT_ADDRESS=
ETHEREUM_CONTRACT_OWNER_PRIVATE_KEY=
ETHEREUM_RPC_URL=
ETHEREUM_WALLET_PRIVATE_KEY=
BINANCE_CONTRACT_ADDRESS=
BINANCE_CONTRACT_OWNER_PRIVATE_KEY=
BINANCE_RPC_URL=
BINANCE_WALLET_PRIVATE_KEY=
KLAYTN_CONTRACT_ADDRESS=
KLAYTN_CONTRACT_OWNER_PRIVATE_KEY=
KLAYTN_RPC_URL=
KLAYTN_WALLET_PRIVATE_KEY=
To the run project follow the below commands,
npm install
npm run start
NOTE: The node version version should be 18 or above. You can install node from here.
To create the build run the below command,
npm run build
To execute the build run the below command,
npm run start:prod
To test the APIs locally, you can change the run the API from the postman.