Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 1.34 KB

File metadata and controls

14 lines (12 loc) · 1.34 KB

Multiple signup demo

Code example used in the tutorial video for preventing multiple signups with FingerprintJS. Watch the video tutorial.

How to run locally

  1. Clone the repository and open the project folder.
  2. Run yarn to install dependencies.
  3. 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.
  4. Install PostgreSQL on your machine if you don't have it (Mac, Windows, Linux) and create a new database.
  5. 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.
  6. Run migrations on the database (0001_initial.sql, then 0002_add_visitor_id.sql).
  7. Run yarn start (it uses nodemon, so the server will restart on every change).

You can learn more about FingerprintJS Pro functionality from the official documentation.