Lending App Tutorial
This tutorial will show you how to set up and run the lending app on your local development environment,
Repository:
https://github.com/BeL2Labs/bel2-loan-front
Prerequesites
- git
- Node.js (version 12 or higher)
npm
or preferablyyarn
.yarn
will be used for the rest of the tutorial
Development
Clone the repository
git clone [email protected]:BeL2Labs/bel2-loan-front.git
Install dependencies
cd bel2-loan-app-front
yarn
Start web
Copy .env.example
to .env.local
then start.
cp .env.example .env.local
yarn start
Generate production/staging builds
production:
yarn build:production
staging:
yarn global add env-cmd
yarn build:staging
Test production builds locally
Start a http server using files that are generated by the build
python3 -m http.server --directory build 8080
To generate typescript factories from contract ABIs
yarn run typechain
If you wish to know more about the lending app, visit its repository.