Skip to content

SakoMe/smart-fund

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Contract Crowdfunding

Ethereum smart contract based cowdfunding webapp

Tech Stack

  • Solidity 4.2.22
  • Next.js 5.1.0
  • web3 1.0.0-beta.26
  • solc 0.4.22
  • semantic ui react
  • mocha

Prerequisites

  • Node verison 8 or higher
  • Metamask Chrome extension (will need the mnemonic as well)
  • Infura.io Rinkeby testnet api end point

Installing

To run locally:

  1. Clone or download the repo
  2. Make a .env file and store the credentials like so:
METAMASK_MNEMONIC=<your mnemonic here>
RINKEBY_ACCOUNT=<infura.io endpoint here>
ADDRESS=<leave this blank for now>
  1. Run yarn (or npm) install to get all of the dependecies
yarn (or npm) install
  1. From the root of directory cd into ethereum and run node compile.js to create the build folder
cd ethereum
node compile.js
  1. Once done, run node deploy.js to deploy the contract onto the network (this will generate a contractDeploymentInfo.txt file)
node deploy.js
  1. Look in the contractDeploymentInfo.txt flie and copy the contract address into the .env
ADDRESS=<address here>
  1. Navigate back to the root and run yarn start to get the dev server going and go to localhost:3000
cd ..
yarn start
  1. Open up the browser and navigate to localhost:3000