Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.31 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.31 KB

clend-www

Development

yarn
yarn dev

Open http://localhost:8080 with your browser to see the result.

Web3 integration

Clone the cLend repo and run yarn && yarn start. It should start a local hardhat node with the required deployed contracts.

Then one need to connect to it with metamask on http://localhost:8545 and work on the website using the local contracts.

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying src/pages/index.js. The page auto-updates as you edit the file.

Advance time and block for interests testing

npx hardhat console

once in the hardat console:

const provider = new ethers.providers.JsonRpcProvider();
(await provider.send("evm_increaseTime", [60*60*24])) && (await provider.send("evm_mine", []))

This should advance the timestamp by 1 day and mine a block.

Static Build

yarn static:build

Considerations

The website should be deployable on IPFS and rely on no centralized backend server.

Once in a while, it's a good idea to verify it's still working properly in offline mode using

yarn static:start

Fleek Deployment

Base directory: Not set

Build command:

yarn install && yarn static:build

Publish directory:

out