Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.12 KB

File metadata and controls

47 lines (29 loc) · 1.12 KB

Lending pool client

The client application has a minimalistic interface to the PAB server.

Running the project

  1. Enter the nix shell (from lending-pool directory):
nix-shell

Cd to ./client folder.

  1. Install npm packages.
npm install
  1. Generate necessary PureScript code from Haskell source. This step runs an executable(generate-purs) from lending-pool directory, which requires a certain environment. The setup steps are described in lending-pool/README. Provided that you are able to build the backend, you can use the same approach to run purescript generation from client folder, i.e.
npm run generate-purs
  1. Start the client:
npm start
  1. Open browser to interact with the app at https://localhost:8009/.

Troubleshooting

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/