I want to build an application that could contain many modules. I want to build the application in a reusable yet configurable way that I could specify which modules are enabled based on the npm package configuration.
For example, my application is about an ERP system. An ERP system may have HR, PayRoll, Sales etc modules. I want to achieve the above with feathers JS.
I checked out https://docs.feathersjs.com/api/express.html#sub-apps but its unclear.
The Feathers generator already sets every service you create up to be configurable individually. Each service e.g. the chat message service is self contained. Just as the generator sets it up it can be required and then added via an app.configure
call (which can also be conditional).