You will learn how to Build an exrm release for NectarCommerce and a quick heads-up on roadblocks and their solutions. It will help you do a dry run in development and production environment on local for less surprises when deployed for use. Continue reading
Category Archives: Phoenix Framework
In the past few posts we have learned how to write code that extends existing models, routers, added methods to override view rendering and run multiple phoenix application together in the same umbrella project. Letâ€™s Continue to build upon that and write our first extension for NectarCommerce favorite products and ultimately our store based on NectarCommerce.
For our curious readers, we tried another extension approach which had linear dependency (nectar => extensions_manager => extensions) helpful in development but turned out to had the serious limitation of Nectar being unavailable for testing.
To overcome the barrier of testing and pleasant developer workflow, what we need is that Nectar is available and compiled while developing extensions and if an extension is added it should recompile itself to include the new extensions.
We have modified Nectar for this approach to seek for extensions and used a custom compiler step(A story for another time) to mark files for recompilation. Letâ€™s get started and see if we can scale the testing barrier.
It’s a walk-through of Extension Approach which has simple, linear dependency (nectar => extensions_manager => extensions) between Nectar, Extensions and Extension Manager and developing an extension is also quite straightforward but turned out to have the serious limitation of Nectar being unavailable for testing. Continue reading
This post aims at documenting how the approach we took to make NectarCommerce extensible is structured, the order of dependencies amongst the various nuts and bolts of NectarCommerce and its extensions as implemented.
NectarCommerce can be divided in two components, both of which reside in the same umbrella application.
As NectarCommerce extensions are envisioned to be used with Nectar and would be dependent on Nectar directly or indirectly, we chose umbrella project to have Nectar, extensions_manager, user_app, and extensions apps as part of it.
We plan to use
phoenix app for extensions where web-component is needed and which would be part of the umbrella project.
We want to allow Extensions to provide alternate view for an existing view in Nectar or provide an alternate template path for all views without changing the Nectar Views.
Alternate View Templates Path than Default for all templates override
We want to allow Extensions to add routes into Nectar Router without modifying the Nectar Router source.
Letâ€™s begin the journey of incremental changes to bring consumer, service and library code into existence starting from a simple use-case of adding a route for showing favorites.
Letâ€™s validate and list the capabilities needed in Extension Framework through an extension which provides feature to mark a product as userâ€™s favorite.
Favorite Product Extension Requirements:
E-commerce Framework with an extension methodology which allows easy integration of custom features unique to the domain.
NectarCommerce should provide an Extension Framework, where custom features as needed per domain can be developed and integrated back to NectarCommerce with minimal effort and no noticeable impact on runtime performance
Elixir coupled with the Phoenix Framework provides one of the most powerful platforms for developing Web and Mobile Applications. It’s capability of producing highly reliable fault-tolerant systems has attracted developers worldwide. Vinsol is delighted to announce the release of it’s … Continue reading