feathers-mongoose-casl
Version 2.1.2
Version 2.1.2
  • feathers-mongoose-casl
  • Docs
    • Migrating
    • START A NEW PROJECT
      • Generate a new project.
      • install feathers-mongoose-casl
      • feathers-logger
      • Update config
      • Add mongoose
      • Email service
      • App hooks
      • Import required services
      • Verify user and filter user fields
      • Swagger, Logger, BodyParser
      • Email templates
      • public HTML
      • Run the server
      • Create you first user
      • vs code snippet extension
      • Test Login
      • Dashboard
      • Create a new Service with casl&Dashboard
      • Posts Postman snippet
      • Add Admin role
      • Done!
    • Advanced
      • Security - eslint-plugin-security
      • Security - rate limiting
      • Development tools
    • Guides
      • Throw errors
      • Auth Flow
      • Authentication
      • Authouriztion
      • /me
      • Rules Cache
      • Create a new service
      • Custom service validtor client data
      • validators
        • Example of use
        • Types
        • Mongoose schema
      • Default value
      • $Populate
      • Upload service
      • Upload files
        • Create upload service
        • Sign File After Populate
        • Storage support
          • Google-cloud
      • Error
      • feathers Client examples
      • Dashboard
        • Dashboard Config
          • Field configuration
          • doc Layout
          • custom Fields
            • customElements
        • Online dashboard
        • Add to your react app
      • customized feathers-mongoose-casl/services
      • Redis - in progress
      • S3
      • Postman
      • Swagger
      • debug
    • Production
      • ENV
    • Feathers wiki
      • Good links
    • utils
      • send email example
      • Async For Each
      • Create heroku server
      • pick
      • vs code snippet extension
      • Persist user request
    • Ecosystem
    • TODO
    • Versions updates
Powered by GitBook
On this page
  • 1 - open node_modules\feathers-mongoose-casl\lib
  • 2- copy the service folder to your src/services
  • 3- fix on top of the files the dependence
  • 4- Open src\services\index.js and require the service from is new location

Was this helpful?

  1. Docs
  2. Guides

customized feathers-mongoose-casl/services

Want to customized

PreviousAdd to your react appNextRedis - in progress

Last updated 6 years ago

Was this helpful?

If you need to customized feathers-mongoose-casl/services you can copt the files from node_modules to your folder

1 - open node_modules\feathers-mongoose-casl\lib

2- copy the service folder to your src/services

3- fix on top of the files the dependence

pass over the files and find where you need to change the import path, you can see it is ready to you with comments in the files you can just search for " require('feathers-mongoose-casl')" and find all the place to change for example

Before

after

4- Open src\services\index.js and require the service from is new location

const users= require('./users/users.service.js');
const authManagement= require('./authmanagement/authmanagement.service.js');
const notifier= require('./authmanagement\notifier\index.js');
const mailer= require('./mailer/mailer.service.js');
const rules= require('./rules/rules.service.js');
const uploads= require('./uploads/uploads.service.js');
const files= require('./files/files.service.js');
const sms= require('./sms/sms.service.js');
const dashboard= require('./dashboard/dashboard.service.js');
const userAbilities= require('./userAbilities/userAbilities.service.js');

// eslint-disable-next-line no-unused-vars
module.exports = function (app) {
  // copy from feathers-mongoose-casl services
  app.configure(users);
  app.configure(authManagement);
  app.configure(notifier);
  app.configure(mailer);
  app.configure(rules);
  app.configure(uploads);
  app.configure(files);
  // app.configure(sms) // we disabled this for now
  app.configure(dashboard);
  app.configure(userAbilities);
};