How do I make AdonisJS 5 modular and hookable? #1355
Unanswered
simonjcarr
asked this question in
Help
Replies: 1 comment 8 replies
-
I think that it is possible. I am from the PHP world too and I do understand what you need. You can use Service Providers with adonis IoC to load any third-party module. Currently, a colleague and I are building our APP using DDD where we separate controllers, routes, ... in different folders and it is working great. My suggestion is to wait a bit more to allow maintainers to implement all features and after that, you can start with your experiment. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to experiment with making a modular application out of AdonisJS 5. I want to provide the ability for third-party developers to write a module that does not require the core application code to be touched.
Many PHP applications have this feature, think WordPress, PrestaShop Drupal etc.
I think the main difference here is that AdonisJS is compiled for production, so modules would have to be added in a dev environment rather than real-time in a production environment like can be done in PHP.
Even so, it would be great to have a core application that supported hooks and modules that were self-contained with Controllers, views, migrations, models, and routes and which the main application could invoke based on hooks.
Beta Was this translation helpful? Give feedback.
All reactions