This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
Varkes 0.1.0
Pre-release
Pre-release
First alpha release of the varkes modules
Features
- app-connector-client
- Allows you to connect to a Kyma cluster
- Manages the APIs registered on a Kyma Application
- Sends events to a Kyma cluster
- Provides a REST API
- Provides a UI
- odata-mock
- Mocks an ODATA server based on EDMX specification files
- openapi-mock
- Mocks an OpenAPI server based on swagger 2.0 and OpenAPI 3.0 specifications
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.1.0",
"@varkes/odata-mock": "^0.1.0",
"@varkes/openapi-mock": "^0.1.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("./varkes_config.json"))
app.use(await openapi("./varkes_config.json"))
app.use(await connector("./varkes_config.json"))
app.listen(10000, function () {
console.info("Started application on port %d", 10000)
})