In the deploy.js file put your Secret Backup Phrase.
NOTE: If you are currently using a Metamask account/wallet with real money or Ether associated with it, STOP IMMEDIATELY. Use other testing accounts.
Also change your Görli URL in deploy.js and web3.js files which you can create at https://infura.io/register.
Use command node deploy.js
from correct directory and also note down your contract deployed address.
Insert that address in factory.js file.
Use command npm run dev
.