Skip to content

ConSolidProject/lbdserver-client-api

Repository files navigation

LBDserver

Testing

In order to run tests (npm run test) which is also the preferred way of further developing the library (write test and make sure that it passes) you need to first have a local solid community server running, and you need to get credentials that you copy-paste to the credentials.js file.

Run local Solid Community server

Get session token

This is needed for running the tests.

{
  "refreshToken" : "BB",
  "clientId"     : "AA",
  "clientSecret" : "XX",
  "oidcIssuer"   : "http://localhost:3000/",
}

Install

You can install this library with github:ConSolidProject/lbdserver-client-api.

Usage

The library exposes four Classes:

  • LbdService: basic interaction with the Pod (e.g. validate and create LBD project repository)
  • LbdProject: basic interaction with LBDserver projects
  • LbdDataset: basic interaction with datasets of LBDserver projects
  • LbdDistribution: basic interaction with distributions of datasets of LBDserver projects.

Build and deploy

Building the library is handled with the npm run build command. This generates the lib folder and its content. We build ESM and UMD bundles that can be directly included in an HTML document. Furthermore, we build a CommonJS and an ESM version.

Bundles are build using the configuration in rollup.config.js.

About

Client API for interacting with the LBDserver ecosystem (Solid)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published