Compacts key FlightAware info down to a JSON. Check out the unit tests to see how it should work. Designed to run on Lambda.
Pull requests welcome!
- Copy
.env.exampleto.env. Fill in the values. - Run
scripts/unitto verify that everything is functional. It uses a saved copy of a sample FlightAware flight and does not use the Internet at all. - Run
scripts/integrationto ensure that the scripts work on Lambda for your AWS account. - Run
ENVIRONMENT=production scripts/deployto deploy the scripts into a domain that you own.
- Unfortunately CI/CD is pretty manual at the moment.
- You might get
ObsoleteNodeErrorssometimes. Not sure why this happens. Sending another request should work. - It uses PhantomJS/Poltergeist under the hood due to it being more compatible with Lambda. I
attempted to use a Lambda-optimized version of Chromium and ChromeDriver but ran into lots of
issues. If you'd like to try getting this to work, check out the
feature/use-chromebranch. - The
flightInfomethod is private to avoid scraping and abuse. Until I get around to using a Cognito custom authorizer, you'll need to addx-api-key: $KEY_FROM_SERVERLESSto your requests for this to work.