This project demonstrates a decentralized application created with Solidity and Javascript. It is created based on Alchemy's documentation.
To demonstrate functions locally: npx hardhat run scripts/buy-drink.js
To deploy contract locally: npx hardhat run scripts/deploy.js
To deploy contract to Goerli network: npx hardhat run scripts/deploy.js --network Goerli
Frontend of the application is created with Repl'it. You can find it here and can fork the same project for frontend part.