@npm/knork
v10.0.5
Published
:curry: :knife_fork_plate: a jshttp based µframework :knife_fork_plate: :spaghetti:
Downloads
35
Readme
:fork_and_knife: Knork :fork_and_knife:
A jshttp-based microframework with Opinions (TM). Collects and curates the following packages:
- Routing, courtesy of
reverse
, - Database access, courtesy of
pg
- Per-request concurrency and transactions, courtesy of
pg-db-session
, - An ORM, courtesy of
ormnomnom
, - Metrics gathering, courtesy of
numbat-emitter
, - Monitoring, a la
restify-monitor
, - and Logging, courtesy of
bole
API
Full docs are available here.
- If you're just getting started with Knork, you might try the tutorial!
- You might have some questions. Check the FAQ.
- The topic documentation lays out the high-level concepts.
- Reference documentation covers API signatures and methods.
:package: denotes a link to an external package that has been bundled with Knork.
- Modules
require('@npm/knork') → createServer
- Middleware
require('@npm/knork/middleware/transaction') → TransactionMiddleware
require('@npm/knork/middleware/database') → DatabaseMiddleware
require('@npm/knork/middleware/monitor') → MonitorMiddleware
require('@npm/knork/middleware/metrics') → MetricsMiddleware
require('@npm/knork/middleware/logging') → LoggingMiddleware
require('@npm/knork/middleware/common') → CommonMiddleware
- HTTP
- Database
- Sub-packages
- :package:
require('@npm/knork/logging') → bole
- :package:
require('@npm/knork/joi') → joi
- :package:
- Common Decorators
- Common Views
- Utilities
Development
To develop locally, clone this repository, and run npm install
in a shell
in the repository directory. From there you can:
npm test
: Run both the linter and the code tests.npm run lint
: Run just the linter.npm run cov:test
: Run the code tests with code coverage enabled.npm run cov:html
: Run the code tests and output a coverage directory. serve the directory athttp://localhost:60888
.
License
ISC