- stack: Node.js, react, solidity, web3
To setup:
- install
npm
if you don't already have it https://nodejs.org/en/ - run
npm install
To start, first run testRPC server, then run app server.
- run
npm run testRPC
- run
npm start
- navigate to localhost:3000
- blockchain
- node_modules
- public
- assets
- components
- bundle.js
- index.html
- index.js
- package.json
- style.css
- webpack.config.js
- .gitignore -deployContract.js -ibcs.solidity -package.json -server.js web3Client.js
- getProfile(address)
- coinsIn (int)
- totalBorrowed (int)
- borrowLimit (int)
- reputation (int)
- getLoans(address)
- loans (array)
[
loanId (int)
paybackAmount (int)
daysRemaining (int)
]
- borrow(address, amount, ratePercent, durationDays)
- payBack(address, loanId)