https://github.com/redhat-developer-demos/getfood
Get food from a database
https://github.com/redhat-developer-demos/getfood
Last synced: about 1 year ago
JSON representation
Get food from a database
- Host: GitHub
- URL: https://github.com/redhat-developer-demos/getfood
- Owner: redhat-developer-demos
- License: apache-2.0
- Created: 2023-12-01T18:44:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-25T18:03:39.000Z (almost 2 years ago)
- Last Synced: 2025-03-16T21:25:43.803Z (over 1 year ago)
- Size: 313 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Create PostgreSQL instance
`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`
## Create configmap file on local machine
`oc create configmap db-config --from-file=./configmap --dry-run=client -o yaml > db-configmap.yaml`
## Create configmap object in OpenShift
`oc create -f db-configmap.yaml`
## Create deployment object in OpenShift
`oc create -f .\mydeploy.yaml`
## Check to see results
Run `curl` against the route, with the "/foods" path.