openactive-archive / conformance-services

Harvests and normalises OpenActive Opportunity feeds to a common representation
MIT License
0 stars 0 forks source link

Open Active Conformance Services

A suite of tools to discover, download, normalise, enhance and republish data that uses the OpenActive specification.

Quick Start

Prepare

Set up a Postgres database and user. Record the details.

These instructions assume Linux.

Configuration

Set environment variable:

DATABASE_URL=postgres://user:pass@host:port/database

Install

$ npm install
$ npm run migrate

Data tools

Run each of these in turn to run the full pipeline. See

Webserver

Running the tests

Note : Tests are destructive to any existing data. Create a dedicated database before running them.

To run the tests:

$ DATABASE_URL=postgres://test:test@localhost/testing ./node_modules/mocha/bin/mocha