git clone --recursive https://github.com/ShoppinPal/vend-oauth-example.gitcd vend-oauth-examplenpm installbower install- edit
config/development.jsonand fill out your vend developerclient_idandclient_secretwhich can be found here: https://developers.vendhq.com/developer/applications cd node_modules/vend-nodejs-sdknpm installcd ../..
- Make sure that your vend developer app is registered with Redirect URI:
https://<vendDomainPrefix>.localtunnel.me/token/vend grunt server --subdomain vendDomainPrefix- so, if I have a vend store named:
blah123.vendhq.com - then I will register a Redirect URI: https://blah123.localtunnel.me/token/vend
- and afterwards run the sample with the command:
grunt server --subdomain blah123 - There is some magic happening behind the scenes on your behalf for this sample: a publically accessible url is being spun up so that Vend can talk to the code running locally on your machine. That url is of the form:
vendDomainPrefix.localtunnel.mebecause there is a good chance that nobody else is using your store's vendDomainPrefix with localtunnel ... so stick to that. If its nto working for you, try substituting with another unique word or name when launching.
You can pick and choose from the existing issues for any features you want to help add, or any bugs you want to crush. Get in touch via the chat link above if you wish to contribute and have specific questions. Otherwise, jsut fork the repo, make your changes and when you're ready, issue a pull-request for review.