Skip to content

toto/conference-import

Repository files navigation

Conference Import

Imports conference data from different sources into the unified ocdata format. Also provides a express based server to serve the unified files from the filesystem/memory.

The idea is to avoid a database alltogether since only static data is served.

Usage

Import data for a specific conference

  1. Create a config file (see importer-config for examples)
  2. Install the dependencies npm install
  3. Build the code npm run build
  4. Run the importer (e.g. for 35C3) node lib/index.js --import --config importer-config/config-35c3.json --out out-35c3.json

Serve the API data

Given the out.json that was generated before run

node lib/index.js --serve --pid your.pid -- *.json

This will serve all data from the JSON files in the current directory. The server will give a bit of output.

Debug / Development options

  • Set LIVE_DEBUG=true to fake the conference to be currently live
  • Alternatively set TIME_START_DEBUG=<date> where <date> is any format that MomentJS can parse. This will be the start point of the first session.

TODO

  • Make the webserver responde to a unix-signal to reload it's files (currently it's just killed and restarted)

About

Imports conference data from different sources into the unified ocdata format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages