Repository for the Circle Modular Wallet Web SDK (aka. BW Web SDK or Buidl Wallet Web SDK)
We've created some example apps in the examples folder:
You should be able to run these example apps locally and please follow the instructions under each example's README
file.
Please follow this guide to setup your development environment and start building!
Please ensure you are using the correct Node.js version.
We have provided a .nvmrc
file which can be understood by nvm, fnm, and n:
nvm use || fnm use || n auto
Note
If you are unfamiliar with Node.js version managers, please refer to our example using nvm
Confirm that you are using the correct Node.js version listed in the .nvmrc
file with:
node -v
This project uses pnpm
to install dependencies, please ensure you have it installed.
You can confirm that you have pnpm
installed with:
pnpm -v
You can now install the project dependencies using pnpm
:
pnpm install
Tip
It is good practice to run the pnpm install
command every time dependencies in the package.json
are changed when updating your branch
Install nvm
to use different versions of node and npm easily.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
You can then install the Node.js version of the project by using:
nvm use
To lint the project:
pnpm lint
To run all unit tests, run:
pnpm test
To generate coverage reports:
pnpm test:coverage