A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/TREEcg/Basic-LDES-Server below:

TREEcg/Basic-LDES-Server: Deprecated. Use the LDES-Solid-Server instead

A Basic LDES is a 1 dimensional pagination of an event stream’s full history and latest objects. The Basic LDES server can be used to map your back-end system to a Basic LDES HTTP server by implementing the Source class.

A Linked Data Event Stream (LDES) is a collection of immutable objects. The HTTP interface adheres to the LDES specification by SEMIC. An LDES can be fragmented in different ways using the TREE specification. Check the TREE Linked Data Fragments website for more background and implementations.

npm i @treecg/basic-ldes-server
yarn add @treecg/basic-ldes-server
let app = require('@treecg/basic-ldes-server')
const AppRunner = app.AppRunner;

new AppRunner().run("./config/config.json");
{
    "app": {
        "port": 3000
    },
    "db": {
        "host": "<location to sqlite db>"
    },
    "entrypoint": "https://www.example.com/"
    "sources" : [ 
        {
            "route": "/endpoint-route", //relative endpoint route
            "sourceFile": "<relative path to compiled Source implementation in dist folder>",
            "usesImportPages": <boolean>,
            "importInterval": <importPages interval> //time between calls to importPages
        },
        ...
    ]
}
Boilerplate implementation

Boilerplate

Examples

git clone https://github.com/TREEcg/Basic-LDES-Server.git 
yarn install
yarn run dev
Test packaging
yarn run build && npm pack

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4