{"id":22358250,"url":"https://github.com/sergiobarriel/emoji-api","last_synced_at":"2026-05-11T07:36:40.679Z","repository":{"id":266468258,"uuid":"896210087","full_name":"sergiobarriel/emoji-api","owner":"sergiobarriel","description":"A lightweight APIs with funny emojis. Designed for learning Docker.","archived":false,"fork":false,"pushed_at":"2024-12-04T11:55:39.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T03:43:10.627Z","etag":null,"topics":["docker","docker-compose"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/repositories/sergiobarriel","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sergiobarriel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-11-29T19:30:21.000Z","updated_at":"2024-12-04T11:55:42.000Z","dependencies_parsed_at":"2024-12-04T12:37:55.561Z","dependency_job_id":"eda7f493-6749-4f00-b222-21f57aaf7477","html_url":"https://github.com/sergiobarriel/emoji-api","commit_stats":null,"previous_names":["sergiobarriel/emoji-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sergiobarriel/emoji-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiobarriel%2Femoji-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiobarriel%2Femoji-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiobarriel%2Femoji-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiobarriel%2Femoji-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergiobarriel","download_url":"https://codeload.github.com/sergiobarriel/emoji-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergiobarriel%2Femoji-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265915128,"owners_count":23848491,"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"],"created_at":"2024-12-04T15:13:23.130Z","updated_at":"2026-05-11T07:36:35.635Z","avatar_url":"https://github.com/sergiobarriel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐒 Emoji API\n\nA lightweight [animals](https://hub.docker.com/repository/docker/sergiobarriel/emoji-api-animals/general), [foods](https://hub.docker.com/repository/docker/sergiobarriel/emoji-api-foods/general) \u0026 [sports](https://hub.docker.com/repository/docker/sergiobarriel/emoji-api-sports/general) APIs with funny emojis. Designed for learning 🐋 **Docker**.\n\n## Usage\n\nPull the *Docker* images:\n\n```shell\n$ docker pull sergiobarriel/emoji-api-animals\n$ docker pull sergiobarriel/emoji-api-foods\n$ docker pull sergiobarriel/emoji-api-sports\n```\n\nRun them:\n\n```shell\n$ docker run -p 5001:80 sergiobarriel/emoji-api-animals\n$ docker run -p 5002:80 sergiobarriel/emoji-api-foods\n$ docker run -p 5003:80 sergiobarriel/emoji-api-sports\n```\n\nNow, you can make requests to the APIs on `localhost`\n\n```shell\n$ curl localhost:5001\n🐖\n$ curl localhost:5002\n🍔\n$ curl localhost:5003\n🏈\n```\n\nIf you clone the repository, you can spin up all the APIs at the same time using *Docker Compose*\n\n```shell\n$ docker compose up\norchestrator-1 | 🎶 running on port 80\nanimals-1      | 🐖 running on port 80\nfoods-1        | 🍔 running on port 80\nsports-1       | 🏈 running on port 80\n```\n\nWhen using Docker Compose, a new application named *orchestrator* will be launched. This application leverages environment variables and internal DNS to communicate with other APIs\n\nIn the provided [compose.yml](https://github.com/sergiobarriel/emoji-api/blob/main/src/compose.yml) file, you can see an environment block that defines several variables, which are passed directly to the container.\n              \n```yml\nservices:\n\n    orchestrator:\n        image: orchestrator\n        ports:\n            - \"5000:80\"\n        environment:\n            - ANIMALS_URL=http://animals:80\n            - FOODS_URL=http://foods:80\n            - SPORTS_URL=http://sports:80\n            - ENVIRONMENT=dev\n\n    # ...\n    # ...\n```\n\nThese environment variables can then be accessed by the application using the method `Environment.GetEnvironmentVariable(\"ANIMALS_URL\")`\n\n\nYou can now make a request to `localhost:5000` and see the combined response from the other APIs.\n\n```\n$ curl localhost:5000\n🐖 🍔 🏈\n```\n\n## Support\n\nYou can contact me via Twitter [@sergiobarriel](https://twitter.com/sergiobarriel), or if you have an [issue](https://github.com/sergiobarriel/emoji-api/issues), you can open one 🙂\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiobarriel%2Femoji-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergiobarriel%2Femoji-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergiobarriel%2Femoji-api/lists"}