Code taken from How to create a Beacon Proxy.
This project demonstrates how to use OpenZeppelin's upgrades plugin to deploy a Beacon proxy.
Try running some of the following tasks:
npx hardhat run scripts/beacon.ts
npx hardhat node
npx hardhat compile