## Instructions for running a public testnet end-to-end integration test
What follows is a series of steps to demonstrate running an end-to-end
integration test of the PAB on the public testnet.
#### Setup
Assumptions:
- You have the `plutus-apps` repo checked out at `$PLUTUS`
- You have a few hours to wait for everything to sync.
Steps:
You will need ~6 terminals to run all the different components.
1. Build all the necessary components:
```
> cd $PLUTUS
> cabal build plutus-pab-examples plutus-chain-index cardano-node cardano-wallet
```
2. Start the testnet node locally:
```
> cd $PLUTUS/plutus-pab/test-node/
> ./start-testnet-node.sh
```
Note: It's important that this is done from the specific directory, because
the config paths are relative.
3. Run the cardano wallet backend:
```
> cd $PLUTUS/plutus-pab/test-node/
> cabal exec -- cardano-wallet serve \
--testnet testnet/testnet-byron-genesis.json \
--node-socket testnet/node.sock
```
4. Create or restore a public testnet wallet:
Here you have a few options. You can re-use an existing wallet, or create
one.
**Create a new wallet**
a. Generate a recovery phrase:
```
> cabal exec -- cardano-wallet recovery-phrase generate
```
b. Restore