The client application has a minimalistic interface to the PAB server.
- Enter the nix shell (from
lending-pooldirectory):
nix-shell
Cd to ./client folder.
- Install npm packages.
npm install
- Generate necessary PureScript code from Haskell source. This step runs an executable(
generate-purs) fromlending-pooldirectory, which requires a certain environment. The setup steps are described inlending-pool/README. Provided that you are able to build the backend, you can use the same approach to run purescript generation fromclientfolder, i.e.
npm run generate-purs
- Start the client:
npm start
- Open browser to interact with the app at https://localhost:8009/.
Sometimes the build results in error with Haskell IDE enabled. If the build does not work or the app behaves strangely, disable IDE and clean all source files:
cd MetaLamp/lending-pool/ && cabal clean
cd MetaLamp/lending-pool/client && rm -rf node_modules/ generated/ output/ plutus-purs/ .spago/