Skip to content
This repository was archived by the owner on Mar 7, 2023. It is now read-only.

Varkes 0.3.0

Pre-release
Pre-release

Choose a tag to compare

@a-thaler a-thaler released this 15 Apr 08:16
· 178 commits to master since this release

Features

  • app-connector-client
    • refactored "insecure" option in connection process and refactored connection state handling (#168)
    • adopted to newest pairing flow by also calling the info URL of connector service (#169)
  • odata-mock
    • Support for multiple ODATA services (#173) instead of merging all into one
  • openapi-mock
    • migrated to typescript (#170)
  • examples
    • improved stress-mock (#172)
  • cockpit
    • added initial project setup for new varkes cockpit, not published to npm yet (#171)

Usage

Use the modules as express middleware in your express based NodeJs application.

Depending on the modules you require, add the dependencies to your package.json like that:

  "dependencies": {
    "@varkes/app-connector-client": "^0.3.0",
    "@varkes/odata-mock": "^0.3.0",
    "@varkes/openapi-mock": "^0.3.0"
  }

In your application enable the modules in your express app like that:

const odata = require("@varkes/odata-mock")
const openapi = require("@varkes/openapi-mock")
const connector = require("@varkes/app-connector-client")
const app = require('express')()

app.use(await odata.init("./varkes_config.json"))
app.use(await openapi.init("./varkes_config.json"))
app.use(await connector.init("./varkes_config.json"))
app.listen(10000, function () {
       console.info("Started application on port %d", 10000)
})