A decentralized P2P lending platform built on the Ethereum blockchain.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
To run this application you will need Node.js (version 6.11.x). This will include npm
, needed
to install dependencies. In order install these dependencies, you will also need Python (version 2.7.x) and
git. You will also need the MetaMask plugin for Chrome.
- Install truffle, and an Ethereum client. If you don't have a test environment, we recommend Ethereum TestRPC
npm install -g truffle
npm install -g ethereumjs-testrpc
- Run your Ethereum client. For TestRPC:
testrpc
Note the mnemonic 12-word phrase printed on startup, you will need it later.
- Compile and migrate your contracts.
truffle compile && truffle migrate
- In order to connect with the Ethereum network, you will need to configure MetaMask
- Log into the
testrpc
test accounts in MetaMask, using the 12-word phrase printed earlier.- A detailed explaination of how to do this can be found here
- Normally, the available test accounts will change whenever you restart
testrpc
. - In order to receive the same test accounts every time you start
testrpc
, start it with a seed like this:testrpc --seed 0
ortestrpc -m "put your mnemonic phrase here needs twelve words to work with MetaMask"
- Normally, the available test accounts will change whenever you restart
- A detailed explaination of how to do this can be found here
- Point MetaMask to
testrpc
by connecting to the networklocalhost:8545
- Run the Webpack server.
npm run dev
The app is now served on localhost:8080
-
Making sure you have configured MetaMask, visit http://localhost:8080 in your browser.
-
Loan and borrow Ether!
This project is licensed under the MIT License - see the LICENSE.md file for details