0.4.0 • Published 5 years ago

@cork-labs/monkfish v0.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Monkfish

Node.js application framework inspired by DDD, Hexagonal and Clean principles.

Getting Started

npm install --save @cork-labs/moknfish

API

class Application

constructor(eventHandler, errorHandler, logger)

newEvent(data)

newContext(type, data)

handle(event, context, logger)

class ErrorHandler

constructor(fns, config)

handle(err, event, context, logger)

class EventHandler

constructor(controllers, preFns, postFns)

handle(event, context, logger)

constructor(fns, config)

class Context

constructor(data)

class Event

constructor(type, data)

class Result

constructor(data, meta)

class ApplicationError extends Error

constructor (name, severity, details, parent)

Develop

# lint and fix
npm run lint

# run test suite
npm test

# lint and test
npm run build

# serve test coverage
npm run coverage

# publish a minor version
node_modules/.bin/npm-bump minor

Contributing

We'd love for you to contribute to our source code and to make it even better than it is today!

Check CONTRIBUTING before submitting issues and PRs.

Links

MIT License

Copyright (c) 2018 Cork Labs

0.4.0

5 years ago

0.3.0

5 years ago

0.2.2

5 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago