{"id":22362073,"url":"https://github.com/vrcca/offer_service","last_synced_at":"2025-03-26T14:45:08.440Z","repository":{"id":86173382,"uuid":"195297303","full_name":"vrcca/offer_service","owner":"vrcca","description":"A service to display airlines offers.","archived":false,"fork":false,"pushed_at":"2019-07-07T23:48:39.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T16:13:49.507Z","etag":null,"topics":["elixir"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vrcca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-04T20:22:46.000Z","updated_at":"2019-07-07T23:48:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3fa1faa-d731-402f-898f-5ac2fb1866c0","html_url":"https://github.com/vrcca/offer_service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vrcca%2Foffer_service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vrcca%2Foffer_service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vrcca%2Foffer_service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vrcca%2Foffer_service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vrcca","download_url":"https://codeload.github.com/vrcca/offer_service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245675088,"owners_count":20654292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elixir"],"created_at":"2024-12-04T16:39:23.275Z","updated_at":"2025-03-26T14:45:08.419Z","avatar_url":"https://github.com/vrcca.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Offer Service\n\n**Fetches flight offers directly from select Airlines.**\n\nAssumptions about this project can be found at [ASSUMPTIONS.md](ASSUMPTIONS.md).\n\n## Installation\nOptionally, you can [run the application with Docker](#running-the-app-with-docker).\n1. Install Erlang 20.0 or later\n2. Install Elixir 1.9+\n3. Run `make`\n\n## Running the tests\nIn the root folder, run `make test` _(Requires Docker)_\n\n## Running the app locally\nYou need to provide the API keys for both British Airlines and Air France webservices.\n\nRun `BA_API_KEY=\"british_key\" AF_API_KEY=\"air_france_key\" make start`\n\n## Running the app with Docker\n1. Install Docker\n2. Run `make docker-image`\n3. Run `BA_API_KEY=\"british_key\" AF_API_KEY=\"air_france_key\" make start-with-docker`\n\nAlso, you can pass the port when starting with docker:\n`PORT=4001 make start-with-docker`\n\n\n## Endpoints\n\n### Find Cheapest Offer\n Returns the Airline and price of the cheapest offer at the given date and route.\n\nEndpoint:  \n`GET /findCheapestOffer`\n\nRequired query parameters:  \n`origin`: The airport code of origin.  \n`destination`: The airport code of destination.  \n`departureDate`: The departure date with format *yyyy-mm-dd*. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvrcca%2Foffer_service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvrcca%2Foffer_service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvrcca%2Foffer_service/lists"}