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.
- Create a config file (see
importer-config
for examples) - Install the dependencies
npm install
- Build the code
npm run build
- Run the importer (e.g. for 35C3)
node lib/index.js --import --config importer-config/config-35c3.json --out out-35c3.json
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.
- 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.
- Make the webserver responde to a unix-signal to reload it's files (currently it's just killed and restarted)