JouleYuan / CrowdFunding

A distributed crowdfunding web platform based on React web framework and Solidity implemented smart contracts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crowd Funding

Crowd Funding is a distributed crowdfunding web platform, which is based on React web framework and solidity implemented smart contracts. On this platform, users can anonymously create crowdfunding projects, create draw requests, contribute to crowdfunding projects and vote for the draw requests.

Build

First, install MetaMask, Ganache and truffle if you haven't installed them.

npm install -g truffle

After the installation, open Ganache and start a workspace. Make sure the host and port in truffle-config.js to be the same with the port in that workspace.

// truffle-config.js
development: {
	host: "127.0.0.1",
	port: 8545,
	network_id: "*",
}

ganache_port

Next, deploy the smart contract.

truffle migrate

After that, replace the address in src/eth/CrowdFunding.js with the address of CrowdFunding contract in Ganache.

// CrowdFunding.js
const address = '0xA305BC95CBf8E6D4d540466C39C02DF3b2744031';

ganache_address

Finally, install all dependencies for this project.

yarn install

Run

Start the application by the following command.

yarn start

home

About

A distributed crowdfunding web platform based on React web framework and Solidity implemented smart contracts


Languages

Language:JavaScript 81.0%Language:Solidity 14.8%Language:HTML 3.2%Language:CSS 1.0%