Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demonstration of Extension Approach 2 #47

Closed
wants to merge 10 commits into from

Conversation

nimish-mehta
Copy link
Contributor

No description provided.

Pikender Sharma and others added 10 commits March 30, 2016 22:16
Provide Schema and Support function DSL through ModelExtension
Provide Router Addition DSL through RouterExtension
Provide All Registered Extensions Consolidation through InstallExtensions
Hook into Nectar Models through NectarExtender
Hook into Nectar Router through Nectar.RouteExtender
Removed "/" route pointing to Page Controller to reach out to Nectar Router Home
Added nectar app as umbrella dependency to user_app
commented Endpoint supervisor as only want to start Repo and other workers
Add nectar in applications to start Nectar Repo
…tensionsManager name

Added Favourite Products NectarExtension to extend Product & User
Added favorite_products app as umbrella dependency to extensions_manager
Added favorite_products app as umbrella dependency to user_app
Registered Product and User Extension in ExtensionsManager.ExtendProduct and ExtensionsManager.Extenduser present in install_extensions.ex
Added UserLike Model under favorite_products
Added UserLike Migration for favorite_products
Updated Nectar and FavoriteProducts Repo to easily migrate the DB with changes
Changed UserApp Repo DB name to be different than Nectar and Favourite Products
  to highlight any dependency on it
Registered Favourite Products Route Extension in ExtensionsManager.Router present in install_extensions.ex
Updated ExtensionsManager.Router in Nectar.RouteExtender to register ExtensionRoutes in Nectar.Router 
Added Dummy Route in FavoriteProducts.Router to use favorite_path Route Helper [Hack]
Added Favourites Index Page to show Favorited Products and List of Products to Favorite
Added Mark / Unmark a Product as Favourite

defmacro include_methods do
quote do
unquote(Enum.map(method_blocks, fn (method_block) -> method_block end))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just unquote(method_blocks)? The map doesn't look like it makes any effect on the data...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out, yes it can be safely removed with no impact. 👍

@pikender
Copy link
Contributor

pikender commented May 5, 2016

Extensions Manager is merged to master
and Demo branch created for reference to integration of extensions #64

Checkout the Blog Series here

@pikender pikender closed this May 5, 2016
@pikender pikender deleted the extension/approach-2 branch May 5, 2016 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants