Michel Jonathan Schmitz b094885b05 style: use single quotes
2019-01-30 14:26:27 +01:00
2019-01-29 16:04:03 +01:00
2019-01-30 14:26:27 +01:00
2018-12-03 18:02:16 +01:00
2018-12-03 18:02:16 +01:00
2018-12-03 18:02:16 +01:00
2019-01-29 16:04:03 +01:00
2018-12-03 18:08:38 +01:00
2018-12-03 18:02:16 +01:00
2019-01-29 16:04:03 +01:00
2018-12-03 18:02:16 +01:00
2018-12-03 18:02:16 +01:00

@openstapps/minimal-connector

Prerequisites:

  • node (version 10+) and npm installed

  • a backend, which is running locally (on http://localhost:3000) --- for testing purposes, it is advisable to use minimal-deployment project

How to get started

To install all needed npm packages:

npm install

To prepare the script to be executed, run:

npm run build

To execute the code in "CLI" script (basically to execute the connector):

node lib/cli.js

To run some sample tests, use:

npm test

The npm scripts are defined in package.json file.

Code structure

File src/main.ts contains:

  • MinimalConnector as class with sample getItems() method, which simulates fetching of items from a resource and validator property which is useful for validating items against StAppsCore
  • sample indexing methods: parse, bulk, index and finish

File src/cli.ts contains:

  • instantiation of a client
  • calls to asynchronous indexing methods using auto method of async library

File test/MinimalConnector.spec.ts contains sample test suite using mocha and chai.

Description
Monorepo that contains all projects for the Open StApps project.
Readme 56 MiB
Languages
TypeScript 85.8%
HTML 7.5%
SCSS 4%
JavaScript 1.6%
Dockerfile 0.4%
Other 0.5%