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 1 #48

Closed
wants to merge 6 commits into from

Commits on Mar 30, 2016

  1. Added ExtensionsManager

    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 ExtensionsManager.Router
    Added extensions_manager app as umbrella dependency to nectar
    Pikender Sharma committed Mar 30, 2016
    Configuration menu
    Copy the full SHA
    f2061a6 View commit details
    Browse the repository at this point in the history
  2. Favourite Products Phoenix Project

    Pikender Sharma committed Mar 30, 2016
    Configuration menu
    Copy the full SHA
    a6d41bb View commit details
    Browse the repository at this point in the history
  3. Added Favourite Products NectarExtension to extend Product & User

    Added favorite_products app as umbrella dependency to extensions_manager
    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
    Pikender Sharma committed Mar 30, 2016
    Configuration menu
    Copy the full SHA
    8f0b62e View commit details
    Browse the repository at this point in the history
  4. Changed Favourite Products NectarExtension to extend routes

    Registered Favourite Products Route Extension in ExtensionsManager.Router present in install_extensions.ex
    Added ExtensionsManager.Router.mount to NectarRouter to register ExtensionRoutes too
    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
    Touched nectar/web/web.ex to show require ExtensionsManager.Router :)
    Pikender Sharma committed Mar 30, 2016
    Configuration menu
    Copy the full SHA
    4dfd36d View commit details
    Browse the repository at this point in the history
  5. Reused Nectar Layout

    Pikender Sharma committed Mar 30, 2016
    Configuration menu
    Copy the full SHA
    6b448d9 View commit details
    Browse the repository at this point in the history
  6. Reused routes as extended to Nectar.Router

    Pikender Sharma committed Mar 30, 2016
    Configuration menu
    Copy the full SHA
    df5694f View commit details
    Browse the repository at this point in the history