To run this example:
-
Clone the repository
-
Place your publishable key where it says
YOUR_PUBLISHABLE_KEY_HERE
within the following files:- public/js-cdn-example.html
- public/gated-content-simple.html
-
Run
node server.js
. (Note that we're using node just to make serving the static html files easy for you since browser wallets like Metamask don't allow requests fromfile://
paths when you're running locally) -
Go to
localhost:8080
on any browser. Enjoy :)