{"id":25720097,"url":"https://github.com/gregwhitaker/httpgateway-demo","last_synced_at":"2025-07-02T07:32:32.394Z","repository":{"id":82732564,"uuid":"189655640","full_name":"gregwhitaker/httpgateway-demo","owner":"gregwhitaker","description":"Simple set of microservices for displaying a product details page on an e-commerce site","archived":false,"fork":false,"pushed_at":"2019-06-05T22:47:55.000Z","size":514,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T00:28:34.911Z","etag":null,"topics":["netifi","netifi-httpgateway","netifi-java"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gregwhitaker.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":"2019-05-31T20:38:35.000Z","updated_at":"2019-06-05T22:48:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e865dfe-b681-437c-99e7-55e8ffef5480","html_url":"https://github.com/gregwhitaker/httpgateway-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gregwhitaker/httpgateway-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fhttpgateway-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fhttpgateway-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fhttpgateway-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fhttpgateway-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregwhitaker","download_url":"https://codeload.github.com/gregwhitaker/httpgateway-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregwhitaker%2Fhttpgateway-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263093789,"owners_count":23412880,"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":["netifi","netifi-httpgateway","netifi-java"],"created_at":"2025-02-25T17:36:32.618Z","updated_at":"2025-07-02T07:32:32.386Z","avatar_url":"https://github.com/gregwhitaker.png","language":"CSS","readme":"# httpgateway-demo\nSimple set of microservices for displaying a product detail page on an e-commerce site.\n\n## Prerequisites\nThis demo requires a running [Consul](https://www.consul.io/docs/index.html) instance for service discovery.\n\nOnce installed you can start a local development Consul by running the following command:\n\n    consul agent -dev\n\n## Building the Demo\nRun the following command to build the demo components:\n\n    ./gradlew clean build\n\n## Building the Demo for Docker\nRun the following command to build the demo components as Docker containers:\n\n    ./gradlew clean buildImage\n\n## Running the Demo\n1. Ensure that you have a local Consul cluster running.\n\n2. In a new terminal, run the following command to start the product service:\n\n        ./gradlew :product-service:bootRunLocal\n        \n3. In a new terminal, run the following command to start the inventory service:\n\n        ./gradlew :inventory-service:bootRunLocal\n        \n4. In a new terminal, run the following command to start the store application:\n\n        ./gradlew :store-app:bootRunLocal\n        \n5. In a web browser, open the url [http://localhost:8082/product/001](http://localhost:8082/product/001) to view the product in the store application.\n\n    ![pdp-screenshot.png](pdp-screenshot.png)\n    \n## Running the Demo in Docker\n1. Ensure that you have a local Consul cluster running.\n\n2. In a new terminal, run the following command to start the product service:\n\n        docker run -e SPRING_PROFILES_ACTIVE='localdocker' -p 8081:8081 netifi/httpgateway-demo-product-service\n        \n3. In a new terminal, run the following command to start the inventory service:\n\n        docker run -e SPRING_PROFILES_ACTIVE='localdocker' -p 8080:8080 netifi/httpgateway-demo-inventory-service\n        \n4. In a new terminal, run the following command to start the store application:\n\n        docker run -e SPRING_PROFILES_ACTIVE='localdocker' -p 8082:8082 netifi/httpgateway-demo-store-app\n                \n5. In a web browser, open the url [http://localhost:8082/product/001](http://localhost:8082/product/001) to view the product in the store application.\n\n## License\nCopyright 2019, [Netifi Inc.](https://www.netifi.com)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fhttpgateway-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregwhitaker%2Fhttpgateway-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregwhitaker%2Fhttpgateway-demo/lists"}