Cyberants-berlin / ryanair

https://ryanair.vercel.app
MIT License
3 stars 1 forks source link

Implement Cron Job for Updating Flight Data in Firebase Database #29

Open RocketRene opened 4 months ago

RocketRene commented 4 months ago

Objective

Create a scheduled cron job that periodically fetches the latest flight data from a specified API and updates our Firebase database with this information. Description

Our application relies on up-to-date flight data to provide users with accurate flight schedules, statuses, and other related information. To ensure our data remains current, we need to implement a cron job that runs every 6 hours. This job will call the flight data API, retrieve the latest flight information, and update our Firebase database accordingly. Requirements

The cron job must run every 6 hours.
Use TypeScript for the implementation to maintain consistency with our existing codebase.
Fetch flight data from the specified flight data API (API details will be provided separately).
Parse the API response and update the Firebase database with the new flight data.
Ensure error handling is in place for API failures or data parsing issues.
Log successes and failures for monitoring and debugging purposes.
The implementation should be done in a new branch
RocketRene commented 2 months ago

ist gerade nicht so wichig