Step 2: Take yourself to the bottom of the page and click on ‘Manage Private Apps’.
Step 3: Now click on ‘Create New Private App’
Step 4: Enter the App details by Filling up the ‘Private App Name’ and ‘Emergency Developer Email’ (this can be your email address).
Step 5: Now, click on "Allow to access storefront data using the StoreFront API"
Step 6: Check all boxes to give all permissions:
Now, click on ‘Save’ at the bottom of the list to create the app. In the Popup, Click on ‘Create App’ to end the creation.
Done! Now copy the Storefront access token to use in the next steps.
Clone Tapita Hydrogen repo
Run these commands:
Open the file shopify.config.js and update these lines with your store's domain and storefront token acquired above.
- storeDomain: 'simicartdemo.myshopify.com',
- storefrontToken: 'e42b8ee293c1f005d15c8760ca014220',
Previewing a production build
To run a local preview of your Hydrogen app in an environment similar to Oxygen, build your Hydrogen app and then run yarn preview:
Building for production
Then, you can run a local server.js using the production build with: