First start by opening your terminal and typing :
Name your project.
Choose install by using NPM or YARN
When finished now install packages
Once packages are installed
cd into the directory of your project
To start your local hardhat environment:
Now open another terminal,
cd into the directory of your project, and deploy the Greetor.sol contract
Now in the same terminal start your Front End:
Now open your browser and go to localhost:3000.
You can now connect a wallet and interact with the Greeter contract by typing in a new message.