0.1.8 • Published 6 years ago
jetstream-microservice v0.1.8
Jetstream microservice
New in v0.1.6
- Shorten key expiration to 5s
- Add tests for JWT signing
New in v0.1.1
Inter-service security added
Security now added to contact other services, use the Jetstream's version of request rather than request itself
var jetstream = require('jetstream-microservice');
jetstream.request(options, next);
Remove inbound security
process.env.IGNORE_JWT_SECURITY = "false";
Getting started
Create a Jetstream service easily
You will need Jetstream core up and running to get this to work correctly.
First install express and jetstream-microservice
$ npm install --save express
$ npm install --save jetstream-microservice
Then create a simple index.js file...
var express = require('express');
var app = express();
var jetstream = require('jetstream-microservice');
var port = 5099;
var options = {
name: "test-service",
location: "http://localhost:" + port
}
jetstream.init(app, options);
var server = app.listen(port);
And run...
$ node index.js
Running tests
Default with summary only:
$ npm test
To see verbose test output, execute:
$ npm run test:detailed
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
7 years ago
0.1.3
7 years ago
0.1.2
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.11
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago