/datafeed-cache

The Datafeed Cache project is a wrapper around VATSIM's Datafeed service which provides basic caching functionality as well as failure detection

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Docker CI/CD Code-Style Check

Datafeed Cache

The Datafeed Cache project is a wrapper around VATSIM's Datafeed service which provides basic caching functionality as well as failure detection. Every response includes an extra flag failed which indicates whether the last update made by the server was successful, or whether the datafeed failed to update. If failed is true, then the previously cached datafeed is returned as the response in data.

The API Documentation can be found in the wiki.

If you wish to contribute and/or make changes, please check out our contribution guide here.

Contact

Name Responsible for Contact
Nikolas G. - 1373921 * git[at]vatger.de

Prerequisites

  • Node.js (https://nodejs.org/en)
  • Typescript (Optional)
    • Typescript is included in the project's dependencies, can however be installed globally using npm install -g typescript. This may however not be necessary in your situation and is more of a recommendation rather than a requirement.

Running the Application

Using Node.js

Assuming node.js is installed, running the application (locally) should be as simple as executing the following two commands.

  1. Run npm install
  2. Run npm run start:dev

Using Docker

Using the included docker-compose.yml you should simply be able to build and run the application. The included compose file exposes port 8000 on the host by default, however can be configured at will to fit any deployment scheme.