zcash-grant-system/frontend
Daniel Ternyak 3862b18670
Fix Funding Progress calculation
Fix BN types
Add contributors tab
Adjust UserRow to optionally show amount as secondary text
Add contributionAmount to contributors in crowdFund
General cleanup
2018-09-16 01:46:40 -05:00
..
bin initial commit 2018-09-10 11:55:26 -05:00
client Fix Funding Progress calculation 2018-09-16 01:46:40 -05:00
.babelrc initial commit 2018-09-10 11:55:26 -05:00
.envexample initial commit 2018-09-10 11:55:26 -05:00
.gitignore Ignore vscode files. 2018-09-14 10:54:52 -04:00
.npmrc initial commit 2018-09-10 11:55:26 -05:00
.nvmrc initial commit 2018-09-10 11:55:26 -05:00
.prettierrc initial commit 2018-09-10 11:55:26 -05:00
README.md initial commit 2018-09-10 11:55:26 -05:00
move.js initial commit 2018-09-10 11:55:26 -05:00
next.config.js initial commit 2018-09-10 11:55:26 -05:00
package.json Convert all units to BN, type web3 (#47) 2018-09-14 16:54:27 -05:00
routes.js initial commit 2018-09-10 11:55:26 -05:00
server.js initial commit 2018-09-10 11:55:26 -05:00
truffle.js initial commit 2018-09-10 11:55:26 -05:00
tsconfig.json Convert all units to BN, type web3 (#47) 2018-09-14 16:54:27 -05:00
tslint.json initial commit 2018-09-10 11:55:26 -05:00
yarn.lock Convert all units to BN, type web3 (#47) 2018-09-14 16:54:27 -05:00

README.md

Grant.io Front-End

This is the front-end component of Grant.io.

Development

  1. Install local project dependencies, and also install Truffle & Ganache globally:

    # Local dependencies
    yarn
    # Global dependencies
    yarn global add truffle ganache-cli
    
  2. (In a separate terminal) Run the ganache development blockchain:

    yarn run ganache
    
  3. Ensure you have grant-contract cloned locally and setup.

  4. (In a separate terminal) Initialize truffle, open up the repl (Changes to smart contracts will require you to re-run this):

    yarn run truffle
    
  5. Run the next.js server / webpack build for the front-end:

    yarn run dev
    
  6. Go to the dapp on localhost:3000. You'll need to setup metamask to connect to the ganache network. You'll want to add a custom "RPC" network, and point it towards localhost:8545.

Testing

Application

TBD

Smart Contract

Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.

# If inside the truffle console
test

# If outside the truffle console
truffle test