{"id":18045381,"url":"https://github.com/lance/store","last_synced_at":"2026-01-19T10:34:08.124Z","repository":{"id":66679408,"uuid":"114388036","full_name":"lance/store","owner":"lance","description":"store application ","archived":false,"fork":false,"pushed_at":"2017-12-15T15:49:59.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T03:41:50.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/lance.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":"2017-12-15T16:03:19.000Z","updated_at":"2017-12-15T12:21:21.000Z","dependencies_parsed_at":"2023-04-13T11:03:48.350Z","dependency_job_id":null,"html_url":"https://github.com/lance/store","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lance/store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lance","download_url":"https://codeload.github.com/lance/store/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lance%2Fstore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-10-30T18:13:01.397Z","updated_at":"2026-01-19T10:34:08.108Z","avatar_url":"https://github.com/lance.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"|Microservice|Namespace|Features Covered|Contents|\n|------------|--|----------------|-|\n|store-frontend|store|dockerfile build|angular app|\n|store-inventory|fflmnt|multi stage builds, FROM scratch,gitlab-ci,distributed databases|golang api,cockroach db, init containers|\n|store-products|store|s2i builds, linking services|nodejs api, mongodb,traffic split|\n|store-recommendations|store|s2i builds|nodejs api, mongodb,traffic split|\n|store-orders|fflmnt|springboot, fabric8, ROAR, debug in IDE|springboot api|\n|All|all|network policies, microservice ops, cloud native||\n\n\n![Microservice Application](https://docs.google.com/drawings/d/e/2PACX-1vQsnCcUr5jOkT1VSEhmhKVh7o0BpFzhIIr2gz28mmFKvAgDp-v6r4kjzPFriWT_rFiOoBkJkbpJ9nAg/pub?w=960\u0026h=720)\n\n\n## Bootstrap\n```sh\noc new-project fflmnt\noc new-project store\noc new-project bi\ncd ~\ngit clone https://github.com/debianmaster/store-products\ngit clone https://github.com/debianmaster/store-inventory\ngit clone https://github.com/debianmaster/store-frontend\ngit clone https://github.com/debianmaster/store-orders \n```\n## Store frontend\n```sh\ncd ~/store-frontend\ndocker build -t \"debianmaster/store-fe:v1\" .\ndocker push debianmaster/store-fe:v1\n```\n\n## Store products\n```sh\noc project store\n```\n### DB\n```sh\noc new-app mongodb -l app=mongodb --name=productsdb \\\n  -e MONGODB_ADMIN_PASSWORD=password  -e MONGODB_USER=app_user \\\n  -e MONGODB_DATABASE=store  -e MONGODB_PASSWORD=password\n  \n```\n### API\n```sh\ncd ~/store-products\n\ngit checkout master\ns2i build . node:8-slim debianmaster/store-products:v1\ndocker push debianmaster/store-products:v1\n\ngit checkout recommendations\ns2i build . node:8-slim debianmaster/store-products:recommendations\ndocker push debianmaster/store-products:recommendations\n\noc new-app debianmaster/store-products:v1 --name=products\n\noc env dc products MONGO_USER=app_user MONGO_PASSWORD=password MONGO_SERVER=productsdb MONGO_PORT=27017 MONGO_DB=store \\\nmongo_url='mongodb://app_user:password@productsdb/store'\n```\n\n## Store inventory\n```sh\noc project fflmnt\n```\n### DB\n```sh\noc adm policy add-scc-to-user anyuid -z default\noc apply -f https://raw.githubusercontent.com/cockroachdb/cockroach/master/cloud/kubernetes/cockroachdb-statefulset.yaml\n\noc apply -f https://raw.githubusercontent.com/cockroachdb/cockroach/master/cloud/kubernetes/cluster-init.yaml\noc expose svc  cockroachdb-public --port=8080 --name=r1\n\noc scale statefulset cockroachdb --replicas=4\noc run cockroachdb -it --image=cockroachdb/cockroach --rm --restart=Never     -- sql --insecure --host=cockroachdb-public\n```\n```sql\ncreate database store;\nuse store;\ncreate table inventory (id int,product_id varchar(30),product_cost int,product_availabilty int,product_subcat int);\ninsert into inventory values (1,'cable_1',10,200,1);\n```\n### API\n```sh\ncd ~/store-inventory\ndocker build -t debianmaster/store-inventory:v1 -f Dockerfile.scratch .\ndocker push debianmaster/store-inventory:v1\n\noc new-app debianmaster/store-inventory:v1 --name=inventory \\\n-e sql_string=postgresql://root@cockroachdb-public:26257/store?sslmode=disable   \n\noc expose svc inventory\n```\n\n## Store Recommendations\n```sh\noc project bi\n```\n```sh\ncd ~/store-recommendations\ndocker build -t debianmaster/store-recommendations:v1 .\ndocker push debianmaster/store-recommendations:v1\n\noc new-app  debianmaster/store-recommendations:v1\n```\n\n## Istio\n### Permissions\n```sh\noc adm policy add-scc-to-user anyuid -z istio-ingress-service-account -n istio-system\noc adm policy add-scc-to-user anyuid -z default -n istio-system\noc adm policy add-scc-to-user privileged -z default -n store\noc adm policy add-scc-to-user privileged -z default -n fflmnt\noc adm policy add-scc-to-user privileged -z default -n bi\n```\n```sh Istio setup\noc apply -f ~/istio-workshop/istio/install/istio-0.3.0/install/kubernetes/istio.yaml\noc apply -f ~/istio-workshop/istio/install/istio-0.3.0/install/kubernetes/addons/\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flance%2Fstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flance%2Fstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flance%2Fstore/lists"}