This repo implements basic P2P lending running on the etherium networks. This is not suitable for production but just illustrative purposes only.
- nodejs
- block chain wallet
Smart contract implementation which is in /backend
directory. It includes local ethereum network which running on http://127.0.0.1:8545
and chainId is 31337
.
Development framework is hardhat
$ yarn install
$ yarn test
$ yarn start
followed by
$ yarn deploy
web UI for the smart contract, it's in /frontend
directory. and basically this is nextjs app with some ethereum library such as wagmi or connectkit
$ yarn install
$ yarn dev
make sure to update next.config.js
that smart contract's address is valid. you can find the address when you deploy the contract