In order to try out this example:
- Create a
.env
file in this directory. - Set the
PREACT_APP_FPJS_PUBLIC_API_KEY
environment variable to the value of your Fingerprint Public API key.
To get the API key:
- Go to Fingerprint Dashboard > API Keys and find it there.
- If you don't have a Fingerprint Pro account, sign up for free.
- Go to the root of the project, install dependencies and build it (
cd ../../ && pnpm install && pnpm build
) - Come back to the example folder (
cd examples/preact
) and runpnpm install
.
After you've completed all the steps and inserted the API key, you can run:
Runs the app in the development mode.
Open http://localhost:8080 to view it in the browser.
To learn more about Preact, take a look at the following resources:
- Preact Documentation - learn about Preact features and API.
- Preact CLI Readme - detailed explanation on how things work.