Code example used in the tutorial video for preventing multiple signups with FingerprintJS. Watch the video tutorial.
- Clone the repository and open the project folder.
- Run
yarn
to install dependencies. - Get a free FingerprintJS public API key here and replace the FPJS_PUBLIC_API_KEY variable in the
.env
file with your public API key value. - Install PostgreSQL on your machine if you don't have it (Mac, Windows, Linux) and create a new database.
- Replace placeholders with actual values in the DATABASE_URL variable in the
.env
file and make sure you are able to connect to your database. - Run migrations on the database (
0001_initial.sql
, then0002_add_visitor_id.sql
). - Run
yarn start
(it usesnodemon
, so the server will restart on every change).
You can learn more about FingerprintJS Pro functionality from the official documentation.