pinterest / pinterest-api-demo

Apache License 2.0
106 stars 63 forks source link

How to run the demo? #5

Open timbonicus opened 8 years ago

timbonicus commented 8 years ago

Is this demo only meant to be run on Heroku? I naively tried to clone the repo and set it up locally as a starting point to poke around with the Pinterest API.

I managed to get it running with:

npm install
npm run dev
node server.js

I changed PIN_APP in src\js\util\const.js to my app ID. At this point, I discovered that the redirect URI is needed and redirect URIs have to be https, which this project doesn't set up locally.

I'll feel a bit sheepish if this is only meant to be a reference demo, rather than a runnable example. If it's Heroku-only, a note to that effect would save some naive developer time.