0.1.2 • Published 5 years ago

@cork-labs/monkfish-port-http v0.1.2

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

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.

Links

MIT License

Copyright (c) 2018 Cork Labs