Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lblod/poc-decision-source-harvester

Proof of concept that harvests local decision using linked traversal
https://github.com/lblod/poc-decision-source-harvester

Last synced: 22 days ago
JSON representation

Proof of concept that harvests local decision using linked traversal

Awesome Lists containing this project

README

        

# poc-decision-source-harvester
Proof of concept that harvests local decision using linked traversal

# Install

We use the NPM package `http-server` to run the harvester application:
```
npm install
npm install --global http-server
```
## Hot reloading
To run with hot reloading. Install the following:
```
npm install --save-dev webpack-dev-server
```

# Build

```
npm run build
```

Now, you need to rebuild the app each time you want to test a specific `interestedMunicipality`.

# Proxy

To increase the performance, we created an HTTP proxy that sets the Cache-Control header to immutable for every publication. Run following commands in a separate terminal to setup the proxy on localhost:8080:

```
cd proxy
npm install
node server.js
```

# Run

```
http-server --cors
```

Go to `http://127.0.0.1:8081/dist/` and check out the console where you should see the harvesting progress

## Hot-reloading
Hot-reloading with webpack-dev-server is implemented. You can run using the following:
```
npm run start:dev
```

# Link traversal client

The browser-build version of Comunica link traversal must be added as Javascript file in the index.html.
If you want to adapt to another Comunica config, build an engine with your config + webpack to a browser js:
https://github.com/brechtvdv/comunica-feature-link-traversal/commit/c42d57e6d9328de962de66f28413660454319efe