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 install
to install dependencies. - Run
yarn dev
to start the local development server. - Run
yarn build
to build a production build of the project. - Run
yarn start
to start the production build of the project. - Run
yarn lint
to check the code style using ESLint.
See the package.json -> scripts
section for more useful commands.
- Run
yarn test
to run unit tests using Vitest. - To run end-to-end tests using Playwright:
- First run
yarn dev
oryarn start
to start the development or production server. - Then run
yarn test:e2e:chrome
to run the tests in Chrome.
- First run
- Merging a PR into
main
automatically 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.com
in 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-cases
app. - Click on the
Activity
tab. - Find a previous working version and click
Rollback
.