GoTrackr / bods-sirivm-producer

Kafka producer for the SIRI-VM feed, provided by the Bus Open Data Service from the UK Government's Department for Transport
0 stars 0 forks source link

BODS SIRI-VM Producer

Kafka producer for the SIRI-VM feed, provided by the Bus Open Data Service from the UK Government's Department for Transport.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/GoTrackr/bods-sirivm-producer.git
    cd bods-sirivm-producer
  2. Install dependencies:

    npm install
  3. Build the project:

    npm run build

Usage

  1. Set the required environment variables (see Environment Variables).

  2. Start the application:

    npm start

Environment Variables

The following environment variables need to be set for the application to run:

Docker

You can also run the application using Docker.

  1. Build the Docker image:

    docker build -t bods-sirivm-producer .
  2. Run the Docker container:

    docker run -e BODS_APIKEY= -e BODS_HOST=string -e BODS_OPERATORS=string -e KAFKA_CLIENTID=string -e KAFKA_BROKERS=string -e KAFKA_TOPIC=string -e MINIMUM_SECONDS_BETWEEN_CALLS=integer -e LOGGING=boolean bods-sirivm-producer

Alternatively, you can use Docker Compose:

  1. Set the environment variables in the docker-compose.yml file.

  2. Start the services:

    docker-compose up

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is (currently) UNLICENSED.