@cork-labs/monkfish-port-http
v0.1.2
Published
HTTP Port adapter for Node.js framework Monkfish
Downloads
15
Readme
Monkfish Port HTTP
HTTP Port adapter for Node.js framework Monkfish.
Getting Started
npm install --save @cork-labs/monkfish @cork-labs/monkfish-port-http
Wraps express framework to facilitate injection, testing and configuration of routes.
Instantiante or extend Port to create an instance of express.
Instantiante or extend Router to define your API routes.
Routes generate Events, dispatch them to the Application core and send the result back to the client.
See Monkfish for more information.
API
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.