Steps to get up and running:
- Create a shopify app if you haven't already.
- Add the file "secrets.json" to the directory above this one, filling it with your app's shared secret:
{ "shopify_shared_secret": "your shared secret here" }
npm install
- Run the server with
node index.js
. - Add the proxy url
"#{your_server_url}/proxy"
to your shopify app on the app settings page. - Install the app on your shopify store.
Now you should be able to visit the proxy url on your store, and get a response like this:
This is the proxy page for #{your_store_name}.
If you visit #{your_server_url}/proxy
directy, you will get a signature validation error:
Signature validation for shopify proxy request failed