2023-05-19 12:59:09 +02:00
2018-11-29 17:38:57 +01:00
2022-07-04 15:46:50 +02:00
2022-04-04 21:33:14 +02:00
2022-07-04 15:46:07 +02:00
2022-07-04 15:46:07 +02:00
2023-05-19 12:59:09 +02:00
2019-12-10 13:38:29 +01:00
2018-11-29 17:38:57 +01:00
2023-05-19 12:59:09 +02:00
2023-05-19 12:59:09 +02:00
2021-12-15 16:14:55 +01:00
2018-11-29 17:38:57 +01:00

@openstapps/api

Node.js library to interact with the StApps backend service

Use this as a standalone program

To get some data into a local backend-node-instance, you can run this as a standalone program to copy data of a remote backend-node-instance into your local one.

Example to copy all Events of the b-tu instance:

npm install
npm run build
node ./lib/cli.js copy Event https://stappsbe01.innocampus.tu-berlin.de http://localhost:3000 100

Example to index all items from @openstapps/core test files to a backend:

npm install
npm run build
node ./lib/cli.js e2e http://localhost:3000

Program arguments

node ./lib/cli.js copy <type> <from> <to> <batchSize>

node ./lib/cli.js e2e <to>

Options

The source identifier for the bulk to use with the target instance (default is 'copy')

-s, --bulkSource <bulkScource>

The App version to use (unset by default)

-a, --appVersion <version>

The only available option for e2e command. File path to json test files each containing a SCThing.

-s, --samples <path>

Example execution

with docker when backend is running on localhost:3000:

docker run --net=host registry.gitlab.com/openstapps/api/cli copy Place https://stappsbe01.innocampus.tu-berlin.de http://localhost:3000 100

Or using e2e command:

docker run --net=host registry.gitlab.com/openstapps/api/cli e2e http://localhost:3000
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%