fastify-hemera
Fastify plugin to integrate Hemera
Install
npm install --save fastify-hemera
Register plugin
fastify
Full list of hemera plugins
Getting Started
$ docker-compose up$ node example.js$ curl http://localhost:3000/reply?a=33&b=22
Examples
Simple
fastify
Async / Await
fastify
Test
Testsuite makes use of hemera-testsuite, so your setup should meet it's prerequisits, esp.:
A nats server must be installed on your machine nats.io and executable as gnatsd
. So add nats-server
as gnatsd
to your PATH
as alias, link whatever works. Check if it's available:
$ gnatsd --help Usage: nats-server [options] [...]
Now test should succeed by running:
$ yarn test