> For the complete documentation index, see [llms.txt](https://brian-broeking.gitbook.io/honey-defi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brian-broeking.gitbook.io/honey-defi/honey-protocol-on-local-validator.md).

# Honey Protocol on Local Validator

Where are the tests, how do you setup local validator. what is an example of onchain code&#x20;

```
// start solana-test-validator in another terminal instance
solana-test-validator

// build honey + test writer helper program
git clone https://github.com/honey-labs/nftLendBorrow.git && cd nftLendBorrow
anchor build
anchor deploy

// this will output a line similar to the one below, run both for honey and 
// the test writer
solana program deploy /path/to/clone/repo/nftLendBorrow/target/deploy/jet.so
solana program deploy /path/to/clone/repo/nftLendBorrow/target/deploy/test_writer.so
```
