{"id":17551011,"url":"https://github.com/brianlusina/airports-trips","last_synced_at":"2026-01-05T00:30:53.067Z","repository":{"id":48424462,"uuid":"135884793","full_name":"BrianLusina/airports-trips","owner":"BrianLusina","description":"A sample micro service application that uses Nameko to create microservices.","archived":false,"fork":false,"pushed_at":"2024-05-28T23:54:50.000Z","size":191,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-29T07:54:50.816Z","etag":null,"topics":["docker","docker-compose","hacktoberfest","nameko","nameko-services","python3","rabbitmq","redis"],"latest_commit_sha":null,"homepage":"","language":"Python","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/BrianLusina.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":"2018-06-03T07:57:16.000Z","updated_at":"2024-06-18T22:19:23.591Z","dependencies_parsed_at":"2024-04-01T20:46:55.824Z","dependency_job_id":"52537241-84c5-4412-ab80-439b52f3a571","html_url":"https://github.com/BrianLusina/airports-trips","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/BrianLusina%2Fairports-trips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLusina%2Fairports-trips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLusina%2Fairports-trips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianLusina%2Fairports-trips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrianLusina","download_url":"https://codeload.github.com/BrianLusina/airports-trips/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245020342,"owners_count":20548180,"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":["docker","docker-compose","hacktoberfest","nameko","nameko-services","python3","rabbitmq","redis"],"created_at":"2024-10-21T04:44:38.140Z","updated_at":"2026-01-05T00:30:53.010Z","avatar_url":"https://github.com/BrianLusina.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Airports and Trips\n\nA simple microservices application demonstrated with [Nameko](https://github.com/nameko/nameko)\n\n## Pre-requisites\n\nYou will need [docker-compose](https://docs.docker.com/compose/install/) and [docker](https://docs.docker.com/) installed in order to run the application. Refer to the relevant documentation for each.\n\nAlso, you will need to have [virtualenv](https://virtualenv.pypa.io/en/latest/) or [pipenv](https://github.com/pypa/pipenv) installed.\n\n## Running\n\nRunning the application:\n\n``` bash\ndocker-compose up\n```\n\nTest the running application with:\n\n```bash\n$ curl -i -d \"{\\\"airport\\\": \\\"first_airport\\\"}\" localhost:8000/airport\nHTTP/1.1 200 OK\nContent-Type: text/plain; charset=utf-8\nContent-Length: 32\nDate: Sun, 27 May 2018 05:05:53 GMT\n\nf2bddf0e506145f6ba0c28c247c54629\n```\n\nQuery the newly created airport\n\n```bash\n$ curl localhost:8000/airport/f2bddf0e506145f6ba0c28c247c54629\n{\"airport\": \"first_airport\"}\n```\n\nGreat, now let’s add another airport:\n\n```bash\n$ curl -i -d \"{\\\"airport\\\": \\\"second_airport\\\"}\" localhost:8000/airport\nHTTP/1.1 200 OK\nContent-Type: text/plain; charset=utf-8\nContent-Length: 32\nDate: Sun, 27 May 2018 05:06:00 GMT\n\n565000adcc774cfda8ca3a806baec6b5\n```\n\nNow we got two airports, That’s enough to form a trip. Let’s create a trip now:\n\n```bash\n$ curl -i -d \"{\\\"airport_from\\\": \\\"f2bddf0e506145f6ba0c28c247c54629\\\", \\\"airport_to\\\": \\\"565000adcc774cfda8ca3a806baec6b5\\\"}\" localhost:8000/trip\n\nHTTP/1.1 200 OK\nContent-Type: text/plain; charset=utf-8\nContent-Length: 32\nDate: Sun, 27 May 2018 05:09:10 GMT\n\n34ca60df07bc42e88501178c0b6b95e4\n```\n\nAs before, that last line represents the trip ID. Let’s check if it was inserted correctly:\n\n```bash\n$ curl localhost:8000/trip/34ca60df07bc42e88501178c0b6b95e4\n{\"trip\": \"{'from': 'f2bddf0e506145f6ba0c28c247c54629', 'to': '565000adcc774cfda8ca3a806baec6b5'}\"}\n```\n\n[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)\n[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianlusina%2Fairports-trips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianlusina%2Fairports-trips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianlusina%2Fairports-trips/lists"}