This project is a decentralized application (DApp) for crowdfunding using Ethereum blockchain with React.
- public/index.html: HTML file for the main user interface.
- src/components/CrowdfundingContract.js: React component for interacting with the smart contract.
- src/App.js: Main React component.
- src/index.js: Entry point for React app.
- README.md: Documentation file.
- Set up Node.js and npm.
- Create a new React app using Create React App.
- Install web3.js and Bootstrap.
- Set up MetaMask, create an Ethereum wallet, and connect to the Sepolia Testnet. (Or the Testnet that you like)
- Get test Ether from the Sepolia Testnet faucet.
- Connect to the Ethereum network.
- Interact with your deployed Solidity smart contract.
- Display fundraising information.
- Enhance the UI using Bootstrap.
- Create a new Solidity file.
- Write the crowdfunding smart contract code.
- Deploy the smart contract using Remix or other tools on the Sepolia Testnet.
- Get the deployed smart contract address and ABI.
- Update React app with the contract address and ABI.
# Command 1: Set Up Development Environment
npm init -y
# Command 2: Create React App
npx create-react-app scriptcrypto-react
cd scriptcrypto-react
# Command 3: Install Dependencies
npm install web3 bootstrap
# Command 4: When you make npm start, if you have an error, use this command (in Windows):
$env:NODE_OPTIONS = "--openssl-legacy-provider"
# Command 4: To start the server
npm start