Faucet Smart Contract - The Faucet Smart Contract, tests, deployment scripts and other related files. (HardHat&Foundry)
Web App - The Web App, tests, request token with a GitHub&Discord Next-Auth integration. (React&Next.js)
Discord Bot - The Discord Bot, request token on Discord (Node.js&AWL Lambda)
Subgraph - The Subgraph, faucet smart contract events indexed on Alchemy&The Graph (Alchemy&The Graph)
Move to the smart contract directory and install dependencies
cd smart_contract
npm install
Compile the smart contract
Deploy the smart contract
npx hardhat run scripts/deploy.js --network < networkName>
Move to the web app directory and install dependencies
Move to the discord bot directory and install dependencies
cd discord-bot
npm install
Register the Discord commands
Move to the subgraph directory and install dependencies
cd subgraph
yarn global add @graphprotocol/graph-cli
yarn
graph init --studio faucet-goerli
graph auth --studio < studio-access-token>
cd faucet-goerli
graph codegen && graph build
graph deploy --studio faucet-goerli