{"id":21486699,"url":"https://github.com/imdeepanshugpt/aggregatorgatewayserver","last_synced_at":"2026-04-14T10:32:14.607Z","repository":{"id":126147124,"uuid":"228014039","full_name":"imdeepanshugpt/AggregatorGatewayServer","owner":"imdeepanshugpt","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-02T10:17:23.000Z","size":569,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-30T08:46:24.619Z","etag":null,"topics":["api","consul","docker","docker-container","docker-image","expressjs","nodejs","pm2","request-promise","server"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/imdeepanshugpt.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,"zenodo":null}},"created_at":"2019-12-14T11:47:59.000Z","updated_at":"2022-11-13T09:39:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"6cb43301-1191-4504-b5b9-0bd1a198b44b","html_url":"https://github.com/imdeepanshugpt/AggregatorGatewayServer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imdeepanshugpt/AggregatorGatewayServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imdeepanshugpt%2FAggregatorGatewayServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imdeepanshugpt%2FAggregatorGatewayServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imdeepanshugpt%2FAggregatorGatewayServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imdeepanshugpt%2FAggregatorGatewayServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imdeepanshugpt","download_url":"https://codeload.github.com/imdeepanshugpt/AggregatorGatewayServer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imdeepanshugpt%2FAggregatorGatewayServer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31793212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","consul","docker","docker-container","docker-image","expressjs","nodejs","pm2","request-promise","server"],"created_at":"2024-11-23T13:23:24.466Z","updated_at":"2026-04-14T10:32:14.593Z","avatar_url":"https://github.com/imdeepanshugpt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AggregatorGatewayServer\n- It is a aggregator gateway server of [order server](https://github.com/imdeepanshugpt/orderServer) and [restaurant server](https://github.com/imdeepanshugpt/restaurantServer).\n- It is used to connect both order server and restaurant server.\n- It is used to make aggergate queries and fetching data from order server and restaurant server.\n- There are two API's are created for aggergate queries /todaysOrder and /todaysRevenue of a multiple restaurants of a city.\n\n**Clustering, Service Discovery**\n\n**Technology Used: NodeJS, Express JS, Consul, PM2, Docker.**\n# MicroServices Architecture\n![Micro Services Architecture](images/MicroServices.png)\n\n# How to run this server\n\n**This server is using consul configuration code so first pull the consul image from docker hub by using following command and launch the container**\n\n- docker pull consul\n- docker run -d -p 8500:8500 -p 8600:8600/udp --name=badger consul agent -server -ui -node=server-1 -bootstrap-expect=1 -client=0.0.0.0\n\n**Take the IP of consul running container and replace it with config/consul.js at line 21 host IP.**\n- Now server is ready to run.\n\n# You can make image of this server by using following command.\n- docker build -t aggregator_server .\n- docker run -it -d -p 8000:8000 aggregator_server\n\n# You can pull the image from docker hub also.\n- To run this container it requires docker consul container running at IP 172.17.0.2 \n- https://hub.docker.com/r/imdeepanshu/aggregator_server\n- docker pull imdeepanshu/aggregator_server\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimdeepanshugpt%2Faggregatorgatewayserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimdeepanshugpt%2Faggregatorgatewayserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimdeepanshugpt%2Faggregatorgatewayserver/lists"}