Developers guide:Running Trezor Connect on localhost
To run Trezor Connect at localhost you will need nodejs and npm installed.
1.First clone Trezor Connect GitHub:
git clone https://github.com/trezor/connect.git
2. Install and run yarn:
npm install -g yarn yarn
3. Run Trezor Connect locally:
yarn run dev
Now your Trezor Connect runs on localhost port.
If you want to connect your application to Trezor connect on your localhost, make sure that trezor-connect lib is pointing to a proper endpoint. You need to set window variable:
window.__TREZOR_CONNECT_SRC = 'https://localhost:8088/';
See also Trezor Connect API