Skip to content

An Ethereum crowdfunding component written in React Js and Web3.

Notifications You must be signed in to change notification settings

alessandrokonrad/ethereum-funding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Milkomeda Crowdfunding

demo

(make sure Metamask is installed, otherwise you can't interact with the dapp)

Check smart contract for this example: http://use-util.cloud.milkomeda.com:4000/address/0x7ae28c580DccA503c7412CE94e844db6f75BE585/transactions

Getting started

  1. clone the repository
  2. run npm install
  3. install Metamask as Chrome extension
  4. create a wallet in Metamask

Create smart contract

under src/contract/ you can find the contract.sol file. This is the contract I use for this example. To use your own contract follow these steps:

  1. go to the Remix IDE
  2. paste in the contract.sol file
  3. deploy the contract on the network you want (e.g. mainnet or ropsten or Milkomeda)
  4. copy the abi and the contract address
  5. go to src/contract/abi.js and replace the abi with yours
  6. go to src/contract/contract.js and replace the contract address with yours

Project setup

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.