@ernesto
I usually:
1. Spin up a local anvil node
2. Deploy my contract to that node
3. Add a custom network to my browser wallet with the node url
4. Connect wallet to frontend on the custom network
The repetitive aspects of this flow can of course be put in a script