This is a decentralized donation web app. It uses the sepolia testnet. Please get sepolia testnet tokens to test the contract from sepolia faucet_ Its features are-
- Login/Signup through OTP delivered to the phone number for the admins
- JWT tokens
- Creating a funding contract
- Funding and withdrawing from the contract through the frontend
Step 0 - Add a .env file in the server directory with the following format. In the mongo uri create a cluster with mongo and add that here-
NODE_ENV=development
PORT=5000
MONGO_URI=
JWT_SECRET= jwtSecret
cd mernPart && npm install
cd client && npm install
cd .. && cd server && npm install
While in the directory mernPart-
npm run dev
Step 0 - Add a .env file in the contract directory with the following format and in the private key section add your account's private key.
SEPOLIA_RPC_URL = https://eth-sepolia.g.alchemy.com/v2/kLlSgWn31V_kgHEFZy13x_WMWMOBoE1n
PRIVATE_KEY =
ETHERSCAN_API_KEY =
COINMARKETCAP_API_KEY =
cd contract && yarn install
yarn hardhat deploy --network sepolia
The console will show the contract address of your deployed contract. Now copy this contract address and paste it in the mernPart/client/src/components/constants.js.