-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from fingerprintjs/chore/reccurent-repository…
…-care Recurrent repository care
- Loading branch information
Showing
31 changed files
with
3,312 additions
and
3,402 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
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 |
---|---|---|
|
@@ -13,8 +13,6 @@ | |
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.idea | ||
.vscode | ||
docs |
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
[ | ||
"@semantic-release/exec", | ||
{ | ||
"prepareCmd": "yarn build" | ||
"prepareCmd": "pnpm build" | ||
} | ||
], | ||
[ | ||
|
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
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,23 +1,24 @@ | ||
## Setting up | ||
In order to try out these examples, you set your public API key as the value of the REACT_APP_FPJS_PUBLIC_API_KEY variable\ | ||
in the `.env` file, located in this directory. | ||
|
||
### FingerprintJS public API key | ||
- Go to [FingerprintJS Dashboard](https://dashboard.fingerprint.com/)* | ||
- Open the _API keys_ page from the sidebar | ||
- Find your _Public_ API key | ||
### Fingerprint Public API key | ||
|
||
*If you don't have a FingerprintJS Pro account, [sign up for free](https://dashboard.fingerprint.com/signup/)). | ||
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 ../../ && yarn install && yarn build`) | ||
2. Link the package to be able to use it locally for the examples `yarn link` | ||
3. Also link React and React-DOM for the React Hooks to work properly (they won't work with 2 instances of React: https://reactjs.org/warnings/invalid-hook-call-warning.html#duplicate-react). Go to each folder in the `node_modules` and execute `yarn link` as well. | ||
4. Come back to the example folder (`cd examples/spa`) and run `yarn install`. | ||
|
||
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/create-react-app`) and run `pnpm install`. | ||
|
||
After you've completed all the steps and inserted the API key, you can run: | ||
|
||
### `yarn start` | ||
### `pnpm start` | ||
|
||
Runs the app in the development mode.\ | ||
Open [http://localhost:3001](http://localhost:3001) 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
Oops, something went wrong.