Better Programming

Advice for programmers.

Follow publication

Member-only story

Create a Fundraising Dapp Using Truffle, Solidity, React, Material UI, and Web3

Set up a fundraising campaign, donate ETH, generate a receipt, and withdraw the amount

Abhishek Chauhan
Better Programming
Published in
7 min readJan 31, 2022

--

Image from Unsplash

We’re going to use React Truffle Box to generate frontend code for our Web3 application to get it running quickly and interact with Web3. Let’s start by making a new directory for our fundraiser application and creating a fresh Truffle React Box application inside it.

The first thing we will need to do is create a new empty repository for our Fundraiser application. Next, we’ll change into that directory and unbox the React Truffle Box:

mdkir fundraiser
cd fundraiser
truffle unbox react

Excluding the node_modules directory, our directory structure should now look like the following:

Remove contracts/SimpleStorage.sol, migrations/2_deploy_contracts.js and empty test folder:

rm contracts/SimpleStorage.sol \ migrations/2_deploy_contracts.js \ test/*

Next, you’ll need to create new files for our contracts and the migration. First, create all the empty…

--

--

Abhishek Chauhan
Abhishek Chauhan

Written by Abhishek Chauhan

👨‍💻 Blockchain dev sharing insights on innovative solutions. Follow me on LinkedIn: https://www.linkedin.com/in/ac12644 🤝 GitHub: https://github.com/ac12644

No responses yet

Write a response