-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,959 additions
and
2,530 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
dist/ | ||
node_modules/ | ||
node_modules/ | ||
.env | ||
.env.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Fingerprint Pro Webpack Example | ||
|
||
This example demonstrates the usage of Fingerprint Pro inside a webpack-based project. | ||
|
||
## Setting up | ||
|
||
### Fingerprint Public API key | ||
|
||
In order to try out this example: | ||
1. Create a `.env` (or `.env.local`) file in this directory. | ||
2. Set the `REACT_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](https://dashboard.fingerprint.com/api-keys) and find it there. | ||
- If you don't have a Fingerprint Pro account, [sign up for free](https://dashboard.fingerprint.com/signup/). | ||
|
||
### Installing dependencies | ||
|
||
1. Go to the root of the project, install dependencies and build it (`cd ../../ && pnpm install && pnpm build`) | ||
2. Come back to the example folder (`cd examples/webpack-based`) and run `pnpm install`. | ||
|
||
After you've completed all the steps and inserted the API key, you can run: | ||
|
||
### `pnpm dev` | ||
|
||
Runs the app in the development mode.\ | ||
Open [http://localhost:8080](http://localhost:8080) to view it in the browser. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.