- Go to the MIRACL Trust Portal (https://trust.miracl.cloud) and create a project.
- On the General page, set Allowed CORS Origins to
http://localhost:9090
. - On the User Verification page, set the Verification Method to
Email Code
.
Start by cloning the project:
git clone https://github.com/miracl/custom-client-sample.git
Install the project dependencies:
npm install
Create a .env
file under the root project directory:
touch .env
Populate it with the following environment variable:
VITE_MIRACL_PROJECT_ID=<YOUR_PROJECT_ID>
Execute the following command to run the sample:
npm start
You can now visit http://localhost:9090
to access the sample.