text: 
  const path = require('path');
  const NeDB = require('nedb');
  const service = require('feathers-nedb');
  const hooks = require('./hooks');
  
  module.exports = function () { // 'function' needed as we use 'this'
    const app = this;
  
    const db = new NeDB({
      filename: path.join(app.get('nedb'), 'users.db'),
      autoload: true,
    });
  
    const options = {
      Model: db,
      paginate: {
        default: 5,
        max: 25,
      },
    };
  
    // Initialize our service with any options it requires
    app.use('/users', service(options));
  
    // Get our initialize service to that we can bind hooks
    const userService = app.service('/users');
  
    // Set up our before hooks
    userService.before(hooks.before);
  
    // Set up our after hooks
    userService.after(hooks.after);
  };
  