@OlegoO hey there, I was creating a VirtoCommerce module, but I had a strange with Compress-Module, it will not include an additional dll.
I checked https://github.com/VirtoCommerce/vc-module-elastic-search/ but haven't found out how 'Elasticsearch.Net.dll' was included in the zip file.
is there any tricks
ah, I see, there is a 'ExcludeFiles' list in https://github.com/VirtoCommerce/vc-platform/blob/master/VirtoCommerce.Module/build/VirtoCommerce.Module.Tasks.targets
Hey @OlegoO, I would like to have your opinion about a question from an Architecture point of view:
I am considering VirtoCommerce Platform as a Headless Commerce Platform, VirtoCommerce Platform is providing all necessary REST APIs for creating a new Storefront.
If I am creating a new VirtoCommerce Storefront by using (Reactjs + Nodejs https://nextjs.org/) or (Vuejs + Nodejs https://nuxtjs.org/), I would like to have a VirtoCommerce Storefront API gateway to communicate with for retrieving products, create a shopping cart, see my orders and so on.
At this moment seem VirtoCommerce Platform REST APIs are not suitable for this? correct me if I am wrong : )
To make this happen, we have to create a VirtoCommerce Storefront API gateway by copying most of code from https://github.com/VirtoCommerce/vc-storefront-core/tree/master/VirtoCommerce.Storefront/Controllers/Api and add more there?
I see a pain for maintaining/upgrading this VirtoCommerce Storefront gateway/proxy API application (A lot of copying code, wrappers on top of auto-generated C# api clients, smart/stupid caching, and so on).
What would you suggest?
The right way is - Create a new Storefront module in VirtoCommerce Platform, to provide all necessary REST APIs for creating a storefront to avoid creating an additional application. You can create simplest API and bring the benefits of VC because It's just a new VC module.
Internally, we are discussing to same way for next Storefront Kit, because it will simplify current Kit and allow create SPA. Unfortunately, I can not provide any estimate for it yet, but we did it for the client project.
You should control several challenges: