How to share and re-use WIX Code solutions

Dear reader,

With WIX Code (which worked beautifully by the way!) I have made a solution for a particular problem that I encountered a lot on these forums. I was planning to package and publish this software in a Wix app so that other developers (and non-developers) can re-use my solution. Unfortunately, looking through the app documentation (Wix Docs) I now learn that a Wix app is mostly just an iframe with only limited (and mainly front-end) integration via the SDK.

So, I have the following two questions:

  1. Is there any way my app can interact with the features from WIX code, for example with wix-router, wix-data, etc…?
  2. If I can’t share my solution in an app, it would actually be even better if I can share my current WIX Code solution directly. Right now the only way I can think of is publishing an open-source GitHub repo and pointing people to that, but there are many downsides to this method: other developers would have to copy over the code into multiple files, set up the pages in exactly the same way and redo the DB configurations manually. In addition, this of course wouldn’t be an option for non-developers, and it would miss the visibility of the app market. So, is there a more seamless way to share and re-use WIX Code solutions? Otherwise, it would seem that every developer using WIX Code is forced to re-invent the wheel over and over.

Thank you in advance for your time,

Henk

edit: clarified second question, some formatting

2 Likes

Hi Henk,
I came across this post and would love to hear more. Would you be willing to chat about these needs on the phone?

Hi Uval,

Definitely! You can reach me for further details on linkedIn: https://www.linkedin.com/in/henk-bierlee-80b536154/

Regards,

Henk

I would love to chat with you and see the solution as well.

I have written some code too that I would like to copy and re-use in my other customers sites, is there an easy way to do this? Maybe make a master page and copy it over? then copy over database?

Hey Bryan, I copy code and paste it into .js files in Visual Studio Code and then I store them in a Workspace I can grab locally and reuse even if all the elements have to be reconnected to code.

Thanks Andreas, that is not as elegant as I was hoping for, but I see it would work. How about your DB can that be copied over from site to site? my skype is bryan.taylor333 we hire js coders from time to time connect with me on skype if your interested. … thanks

Hi Bryan,

I use much the same approach as Bryan (having the code locally for development and the copy it over to the sites). We had some previous discussions on using an external editor in this other thread: https://www.wix.com/code/home/forum/community-discussion/wix-code-editor-development-environment-alternatives.

If you’re making a new site, you can also duplicate an old site which should copy over the code and db collections al well.

Good luck!