You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an Admin module for admin.boilerplate.local (administration interface on a different domain)
Create an Api module for api.boilerplate.local (a minimal Restful API).
Keep only core functionality inside the Core module. For example;
Api module shouldn't need and/or start sessions.
Admin and Frontend modules shouldn't load on API requests.DONE
Core and Admin modules should be loaded on admin.boilerplate.local and Frontend and Api is not.DONE
Core and Frontend modules should be loaded on www.boilerplate.local and Admin and Api is not.DONE
Improve grunt configuration file and separate admin and frontend related assets.
Logging in to www.boilerplate.local shouldn't mean signing-in to administration interface with same account. Think about separating sessions by domains.
Consider creating a BaseAdminController for Admin module. Probably we'll want to implement the onDispatch($e) method inside.
Consider rendering the output in JSON format on Api module and this module MAY/SHOULD utilize other well-written libraries like zf-rest, zf-hal etc..
Write unit tests.
Separate module configuration cache settings since the application doesn't loads every module on each request. Defining domains on early steps of dispatching process may appropriate decision.
Create a Console module to provide a common CLI interface to the application. All console controllers should derived from a common BaseConsoleController and each controller SHOULD consume the various application services. Logging and exception handling may resolved in controller level.
Finally document how to run same application on different domains with different aspects while keeping module loading & bootstrapping process lightweight.
The text was updated successfully, but these errors were encountered:
For different modules for three different aspects would be perfect for maintainable and robust application infrastructure.
Create a(public website)Frontend
module for www.boilerplate.localCreate an(administration interface on a different domain)Admin
module for admin.boilerplate.localCreate an(a minimal Restful API).Api
module for api.boilerplate.localKeep only core functionality inside theCore
module. For example;Api
module shouldn't need and/or start sessions.DONEAdmin
andFrontend
modules shouldn't load on API requests.DONECore
andAdmin
modules should be loaded on admin.boilerplate.local andFrontend
andApi
is not.DONECore
andFrontend
modules should be loaded on www.boilerplate.local andAdmin
andApi
is not.BaseAdminController
forAdmin
module. Probably we'll want to implement theonDispatch($e)
method inside.Consider rendering the output in JSON format onApi
module and this module MAY/SHOULD utilize other well-written libraries like zf-rest, zf-hal etc..Separate module configuration cache settings since the application doesn't loads every module on each request. Defining domains on early steps of dispatching process may appropriate decision.Console
module to provide a common CLI interface to the application. All console controllers should derived from a commonBaseConsoleController
and each controller SHOULD consume the various application services. Logging and exception handling may resolved in controller level.Finally document how to run same application on different domains with different aspects while keeping module loading & bootstrapping process lightweight.
The text was updated successfully, but these errors were encountered: