简体   繁体   中英

How to create application module in feathers.js?

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 eg 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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM