{"size": 387, "ext": "js", "max_stars_repo_path": "apps/ecars-realtime/sensor-persistence.js", "max_stars_repo_name": "dcristobal-sf/ecars", "max_stars_repo_stars_event_min_datetime": "2020-10-13T17:10:01.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-24T16:22:40.000Z", "max_issues_repo_path": "apps/ecars-realtime/sensor-persistence.js", "max_issues_repo_name": "dcristobal-sf/ecars", "max_issues_repo_issues_event_min_datetime": "2020-10-13T15:52:13.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T00:18:42.000Z", "max_forks_repo_path": "apps/ecars-realtime/sensor-persistence.js", "max_forks_repo_name": "dcristobal-sf/ecars", "max_forks_repo_forks_event_min_datetime": "2020-10-13T23:05:10.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-18T09:13:06.000Z"}
{"max_stars_count": 131, "max_issues_count": 540, "max_forks_count": 87, "avg_line_length": 19.35, "max_line_length": 72, "alphanum_fraction": 0.669250646}
'use strict';

require('dotenv').config();

const useKafka = +process.env.USE_KAFKA == true;

if (!useKafka) {
    console.log('KAFKA is Disabled, please enable it with USE_KAFKA=1');
    process.exit(0);
}

const Writer = require('@ecars/events-persistence');
const writer = new Writer();

async function main() {
    await writer.start();
}

main().catch((err) => console.error(err));
