0.0.1 • Published 4 years ago

sails-hook-ddd-generator v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

sails-hook-ddd-generator

Sails.js hook & generator to use data-domain-driver

Installation

$ # Configuration file and DDD definition file must be placed
$ npm install sails-hook-ddd-generator

.sailsrc

{
  "hooks": {
    "orm": false,
    "pubsub": false
  },
  "generators": {
    "modules": {
      "new": "sails-hook-ddd-generator"
    }
  }
}

Usage

On the request action

module.exports = async function requestAction (req, res) {

  rtns = await sails.DDD.callProcedure('proc01', req);

  return res.view('requestAction', rtns.toObject());

}

On the command line

$ sails new <project name>

Licence

MIT

Author

nmrmsys

0.0.1

4 years ago