The backend is modular and supports multiple networks in the same time. It is configured for mainnet, testnet and nakamoto-testnet.
-
Set up the environment
i. Copy the.env.example
file and rename it to.env
. Fill the fields with your signer's data. The testnet fields are both for testnet and nakamoto-testnet.
ii. The default port used is 8080, but can be changed in the index.ts file. -
Install dependencies
npm i
- Build the backend
npm run build
- Run the backend
npm run start:prod