The Charity Donation System is a decentralized application (DApp) built on the Thirdweb platform, allowing users to make transparent and secure donations to charitable organizations. The project consists of two main components: the frontend client and the smart contract deployment.
To run the Charity Donation System locally, follow these steps:
- Node.js 22 or later installed on your system.
-
Clone the repository to your local machine:
git clone https://github.com/JugalKothari/charity-donation-system.git
-
Navigate to the
client
directory and install frontend dependencies:cd client npm install
-
Navigate to the
charitydonation
directory and install smart contract deployment dependencies:cd ../charitydonation npm install
-
After installing dependencies in the
charitydonation
folder, run the following command to deploy the smart contract:npm run deploy
-
You will receive a link to deploy your smart contract on Thirdweb.
-
Copy the address of the deployed smart contract.
-
Navigate to the
src/context/index.js
file in theclient
folder. -
Paste the address of the deployed smart contract in the appropriate location.
-
Create a Thirdweb API and obtain a clientID and secret key.
-
Paste the clientID and secret key in the
index.js
file as well.
-
Navigate back to the
client
directory. -
Run the following command to start the frontend development server:
npm run dev
-
Access the Charity Donation System in your browser at http://localhost:5173.
- React v18.2
- React Router v6.23.0
- Tailwind CSS v3.4.3
- Vite v3
- Hardhat v2.13.0
- Thirdweb v5.12.0
- ethers.js v5
- dotenv v16.4.5
For any inquiries or feedback, please contact jugalprakashk19@gmail.com.