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
  • feathers-mongoose-casl services
  • feathers-mongoose-casl is come with numbers of services:
  • Import feathers-mongoose-casl services to your project

Was this helpful?

  1. Docs
  2. START A NEW PROJECT

Import required services

PreviousApp hooksNextVerify user and filter user fields

Last updated 5 years ago

Was this helpful?

feathers-mongoose-casl services

feathers-mongoose-casl is come with numbers of services:

  • users

    mongoose service to manage users collection

  • me allow the user to get and patch itself

  • authManagement handle user verify password, reset and more,

  • notifier(Not exposed to the client) used by authManagement service to send the right email to the user to verify password, changed password message...

  • mailer(Not exposed to the client) used by notifier to send mail to user

  • rules mongoose service to manage rules collection OPTIONAL - if you didn't need dynamic rules then you didn't need to import this service

  • uploads(Not exposed to the client) upload file to aws/google/local folder

  • files mongoose service to manage files collection, upload the file with the uploads service

  • dashboard A dashboard for managing your app

  • userAbilities Provides user permissions information

Import feathers-mongoose-casl services to your project

Open src > services >index.js Copy the content from the code snippet

src\services\index.js
const {services} = require('feathers-mongoose-casl');
// eslint-disable-next-line no-unused-vars
module.exports = function (app) {
  // feathers-mongoose-casl services
  app.configure(services.users); // mongoose service to manage users collection
  app.configure(services.me); // / allow the user to get and patch itself *must come after users
  app.configure(services.authManagement); // handle user verify password, reset and more
  app.configure(services.rules); // Optional - import only if you need dynamic rules,mongoose service to manage rules collection
  app.configure(services.mailer); // used by notifier to send emails (Not exposed to the client)
  app.configure(services.notifier); // used by authManagement service to send the right email to the user to verify password, changed password message.(Not exposed to the client)
  app.configure(services.uploads); // uploads file to aws/google or to local folder.(Not exposed to the client)
  app.configure(services.files); // mongoose service to manage files collection, uploads files with upload service
  app.configure(services.dashboard); // A dashboard for managing your app
  app.configure(services.userAbilities); // Provides user permissions information
  // Specific project services
  app.configure(posts);
};

If you want to customize a service copy the service folder to your app

git add .
git commit -m "import feathers-mongoose-casl services"
for more details