A decentralized application (dApp) for handling donations on the Ethereum blockchain, built with Hardhat for smart contract development and deployment.
This donation dApp enables transparent and secure donations using smart contracts. The application demonstrates blockchain-based crowdfunding capabilities where users can make donations that are recorded immutably on the blockchain.
- Modern Web Interface: Built with Next.js for optimal user experience
- Smart Contract-Based Donations: Secure and transparent donation processing
- Ethereum Integration: Built on Ethereum blockchain for decentralized operations
- Hardhat Development Environment: Professional development setup with testing and deployment tools
- Gas Optimization: Efficient smart contract design for cost-effective transactions
- Responsive Design: Works seamlessly across desktop and mobile devices
- Frontend: Next.js
- Smart Contracts: Solidity
- Development Framework: Hardhat
- Blockchain: Ethereum
- Testing: Hardhat Test Suite
- Deployment: Hardhat Ignition
Before running this project, make sure you have:
- Node.js (v14+ recommended)
- npm or yarn
- MetaMask wallet (for blockchain interaction)
- Ethereum testnet ETH (for testing)
- Clone the repository:
git clone https://github.com/Abu-Miracle/Donation-dApp.git
cd Donation-dApp- Install dependencies:
npm installBlockchain Development:
# Get help with available commands
npx hardhat help
# Run tests
npx hardhat test
# Run tests with gas reporting
REPORT_GAS=true npx hardhat test
# Start local blockchain node
npx hardhat node
# Deploy contracts
npx hardhat ignition deploy ./ignition/modules/Lock.jsFrontend Development:
# Start the Next.js development server
npm run dev
# or
yarn dev
# Build the application for production
npm run build
# or
yarn build
# Start the production server
npm start
# or
yarn startRun the test suite to ensure all functionality works correctly:
npm testDeploy the smart contracts to your chosen network:
npx hardhat ignition deploy ./ignition/modules/Lock.js --network <network-name>- Donation acceptance and tracking
- Transparent fund management
- Withdrawal mechanisms for authorized recipients
- Event logging for all transactions
- Fork the repository
- Create a feature branch (
git checkout -b feature/new-feature) - Commit your changes (
git commit -am 'Add new feature') - Push to the branch (
git push origin feature/new-feature) - Create a Pull Request
This project includes:
- Comprehensive test coverage
- Gas optimization
- Security best practices for smart contract development
This project is open source and available under the MIT License.
Abu-Miracle - GitHub Profile
- Built with Hardhat development environment
- Utilizes Ethereum blockchain technology
- Inspired by decentralized fundraising principles
For questions or support, please open an issue in the repository.