How iamabhishekgawali/crowdfunding works
Project type and purpose
• Fundchain is a full-stack decentralized application (dApp) for crowdfunding on Ethereum.
• The React front-end ("client/fundchain") interacts directly with smart contracts deployed via Hardhat on an Ethereum network.
File structure
• Top-level directories:
• client/fundchain: React app (UI components, styles, context, utils)
• contracts: Solidity smart contract sources (Campaign.sol, CampaignFactory.sol)
• scripts: Hardhat deploy script (scripts/deploy.js)
• test: Smart contract tests (test/Lock.js)
• Key config files: hardhat.config.js, package.json (both root and client).
• No traditional centralized “backend”—the blockchain replaces it.
README
• Describes a user flow: connect MetaMask, view campaigns, contribute, see confetti, handle withdrawal requests.
• No server-side API—front-end talks to Ethereum via MetaMask/Ethers.js.
Detailed breakdown of components
• React UI Layer:
• Components folder (pages & widgets)
• Context layer (WalletContext)
• Utils folder (ABI JSON, constants)
• Blockchain Layer:
• CampaignFactory contract
• Campaign contract
• Infrastructure/Tooling Layer:
• Hardhat node & config
• Deploy script (scripts/deploy.js)
• Tests (test/Lock.js)