JS-SDK (Using NextJS & ReactJS) Checkout

Highlighted
New Member
1 0 0

So I am trying out the JS-SDK with my NextJS app using the examples from storefront examples and I just want to make sure I am utilizing the JS-SDK correctly.  

My frontend will be NextJS. For now my storefrontAccessToken and my domain are stored in my _app.js file. Unless I am mistaken there is no particular risk having my storefront access token in my exposed client end right? 

Also I am assuming  since what I am developing is a "private app" that would mean I am responsible for hosting my private app through Heroku or digital ocean as a nodejs app. Does Shopify offer some kind of way for private apps to be hosted? 

Finally, if I want to implement a persistent cart does this mean I should consider incorporating local storage or a database with my private app?

Thank for any help. I am implementing this as a private app just as a learning experience and to help a family member out with their apparel company.

0 Likes

Hello 

1. My frontend will be NextJS. For now my storefrontAccessToken and my domain are stored in my _app.js file. Unless I am mistaken there is no particular risk having my storefront access token in my exposed client end right? 
 :- The best practice would be to not have a confidential details disclosure.
 
2. Also I am assuming  since what I am developing is a "private app" that would mean I am responsible for hosting my private app through Heroku or digital ocean as a nodejs app. Does Shopify offer some kind of way for private apps to be hosted? 
:- As pre our knowledge shopify does not provide server plateform to  host  private apps 
 
3. Finally, if I want to implement a persistent cart does this mean I should consider incorporating local storage or a database with my private app?
 :- Yes you can 
Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Custom Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Digital Marketing | Site Speed Optimization | Web Development
0 Likes