The main branch is locked for the push action. For proposing changes, use the standard pull request approach. It's recommended to discuss fixes or new functionality in the Issues, first.
We prefer using yarn for installing dependencies and running scripts.
- Run
yarn installto install dependencies. - Run
yarn devto start the local development server. - Run
yarn buildto build a production build of the project. - Run
yarn startto start the production build of the project. - Run
yarn lintto check the code style using ESLint.
See the package.json -> scripts section for more useful commands.
- Run
yarn testto run unit tests using Vitest. - To run end-to-end tests using Playwright:
- First run
yarn devoryarn startto start the development or production server. - Then run
yarn test:e2e:chrometo run the tests in Chrome.
- First run
- Merging a PR into
mainautomatically triggers a new deployment accessible on demo.fingerprint.com. - The app is deployed as a Digital Ocean App.
- The app is deployed behind a CloudFront distribution in the Fingerprint DEV AWS environment (search for
demo.fingerprint.comin the distribution description).- If you ever encounter caching issues, for example, a cached index.html pointing to no longer existing resources, you can fix it by creating a cache invalidation (
/*is fine) in the CloudFront distribution.
- If you ever encounter caching issues, for example, a cached index.html pointing to no longer existing resources, you can fix it by creating a cache invalidation (
If an incident occurs, any member of the Fingerprint team on Digital Ocean can rollback the app to the previous version. In case of any problems, please contact @JuroUhlar and the Integrations team.
- Go to the Digital Ocean control panel.
- Find the
fingerprint-use-casesapp. - Click on the
Activitytab. - Find a previous working version and click
Rollback.