
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
aviation-api
Advanced tools
[](https://travis-ci.org/cristobal-io/aviation-api)
This is the REST API that powers http://aviation.cristobal.io (github repo.
It's built on top of aviation-model, and uses aviation data gathered from aviation-scrapper.
Check the API docs.
This API uses the data gathered by a scrapper, the data is then normalized and stored in JSON files before being migrated to a postgres database..
Make sure you check the migration module if you want to set this app on an existing postgres server.
All the dependencies for running the API as defined on this projects docker-compose.yml file.
To bring up a local instance of the API, you just need to run.
make dev
this will start dependencies on docker and the server locally using nodemon.
For continuous testing run:
make test-watch
To start the db, run and other dependencies run:
make docker-dependencies
Default environment variables will be taken from .env
With the server started you can enter the following URL:
http://localhost:8081/airlines/?airline_id=American_Airlines
And will have the json object returned:
[
{
"airline_id":"American_Airlines",
"name":"American Airlines, Inc.",
"logo_url":"//upload.wikimedia.org/wikipedia/en/thumb/2/23/American_Airlines_logo_2013.svg/300px-American_Airlines_logo_2013.svg.png",
"iata":"AA",
"icao":"AAL",
"callsign":"AMERICAN",
"website":"http://www.aa.com"
}
]
Run the command npm test
or make test
or if you want to use docker make test-docker
or make test-docker-watch
.
If you want to contribute, create your branch and place a PR or open an issue.
FAQs
[](https://travis-ci.org/cristobal-io/aviation-api)
The npm package aviation-api receives a total of 5 weekly downloads. As such, aviation-api popularity was classified as not popular.
We found that aviation-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.