{"id":21427979,"url":"https://github.com/redhat-developer-demos/getfood","last_synced_at":"2025-06-17T04:06:58.595Z","repository":{"id":210282904,"uuid":"726198910","full_name":"redhat-developer-demos/getfood","owner":"redhat-developer-demos","description":"Get food from a database","archived":false,"fork":false,"pushed_at":"2024-09-25T18:03:39.000Z","size":321,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T21:25:43.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/redhat-developer-demos.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}},"created_at":"2023-12-01T18:44:32.000Z","updated_at":"2024-09-25T18:03:43.000Z","dependencies_parsed_at":"2023-12-06T18:44:43.790Z","dependency_job_id":"715eae27-19b0-4573-be39-98808d21d875","html_url":"https://github.com/redhat-developer-demos/getfood","commit_stats":null,"previous_names":["donschenck/getfood"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redhat-developer-demos/getfood","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fgetfood","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fgetfood/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fgetfood/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fgetfood/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-developer-demos","download_url":"https://codeload.github.com/redhat-developer-demos/getfood/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fgetfood/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260288471,"owners_count":22986667,"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":[],"created_at":"2024-11-22T22:09:23.204Z","updated_at":"2025-06-17T04:06:58.570Z","avatar_url":"https://github.com/redhat-developer-demos.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Create PostgreSQL instance\n`oc new-app openshift/postgresql-ephemeral -p DATABASE_SERVICE_NAME=postgresql -e POSTGRESQL_USER=postgres -e POSTGRESQL_PASSWORD=postgres --labels=app.kubernetes.io/part-of=foods,systemname=foods,tier=database,database=postgresql,foods=database`\n\n\n## Create configmap file on local machine\n`oc create configmap db-config --from-file=./configmap --dry-run=client -o yaml \u003e db-configmap.yaml`  \n\n\n## Create configmap object in OpenShift\n`oc create -f db-configmap.yaml`  \n\n\n## Create deployment object in OpenShift\n`oc create -f .\\mydeploy.yaml`  \n\n\n## Check to see results  \nRun `curl` against the route, with the \"/foods\" path.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fgetfood","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-developer-demos%2Fgetfood","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fgetfood/lists"}