This backend Node application is used as a middleware to enables a frontend apps to interact with Shopify's admin API.
It uses JWT token and CORS for security.
You fist query for a JWT token using the Shopify customer's ID, and you get an JWR token valid for 1h to use in your frontend app. Then you can make queries to interact withe the Shopify admin API.
Currently, this app only enables writing to a customer's metafields/metaobject
/token POST
Public endpoint to retrive a JWT token valid for an hour. You must POST the customerID. Use this token to make calls to other prive endpoints
Node version 20
git clone [git URL] cd [folder] npm install cp .env.exemple .env