Development discussions around Shopify APIs
I am thinking of developing a theme for my store and wonder if keeping version control should be strictly private for a store of if it's okay to have it in GitHub.
Solved! Go to the solution
This is an accepted solution.
Reminder Do Not place in public accessible areas themes from the theme store or other themes of which you do not have redistribution rights.
FYI: Github offers private repos for free accounts, since the microsoft acquisition afaik. github.com/pricing
In general for a public repo as long if you follow best practices it's not dangerous.
Meaning your theme contains no secrets: private api keys, customer names, confidential business logic, or privately licensed code from vendors or apps of which you do not have redistribution rights etc.
Confidential business logic can be something as minor as logic that operates on a special customer tag to offer discounts that should not be public.
Another consideration is if you are connecting the theme on the shopify store to the github integration in which case ALL stakeholders or theme contributors MUST be aware that whatever they put in the theme will be on the PUBLIC repo; thus they need to follow privacy practices as well.
This is an accepted solution.
Reminder Do Not place in public accessible areas themes from the theme store or other themes of which you do not have redistribution rights.
FYI: Github offers private repos for free accounts, since the microsoft acquisition afaik. github.com/pricing
In general for a public repo as long if you follow best practices it's not dangerous.
Meaning your theme contains no secrets: private api keys, customer names, confidential business logic, or privately licensed code from vendors or apps of which you do not have redistribution rights etc.
Confidential business logic can be something as minor as logic that operates on a special customer tag to offer discounts that should not be public.
Another consideration is if you are connecting the theme on the shopify store to the github integration in which case ALL stakeholders or theme contributors MUST be aware that whatever they put in the theme will be on the PUBLIC repo; thus they need to follow privacy practices as well.
Thanks, a great answer and it will be helpful to others in the future.
Also see the Dawn reference repo github.com/Shopify/dawn for examples of generic theme code meant for public view.
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023