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

Varkes 0.2.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@a-thaler a-thaler released this 25 Mar 08:23
· 186 commits to master since this release

Features

  • documentation cleanup (#113)
  • app-connector-client
    • added basic auth support in API registration process (#157)
    • API provider field configurable by configuration (#158)
    • added customizable logo (#149)
    • migration required: named public method of module as "init"
  • odata-mock
    • migrated to typescript (#154)
    • migration required: named public method of module as "init"
  • openapi-mock
    • migration required: named public method of module as "init"

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.2.2",
    "@varkes/odata-mock": "^0.2.2",
    "@varkes/openapi-mock": "^0.2.2"
  }

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)
})