Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1006 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 1006 Bytes

quotegen-frontend

This is a simple frontend that displays famous quotes from a backend Quote Generator.

Contribute

CodeReady Workspaces

Contribute

create application with postgres backend

export PROJECT=<namespace>

oc new-project ${PROJECT}

oc apply -f ./quotegen-frontend/oc_templates/frontend/is_frontend.yml  -n ${PROJECT}
oc apply -f ./quotegen-frontend/oc_templates/frontend/svc_frontend.yml -n ${PROJECT}
oc apply -f ./quotegen-frontend/oc_templates/frontend/dc_frontend.yml -n ${PROJECT}

oc expose svc/frontend -n ${PROJECT}

Backend Response Example:

{
 "backend":"postgresql",
 "quotes": {
    "name":"Benjamin Franklin",
    "quote":"Tell me and I forget.  Teach me and I remember.  Involve me and I learn."
}}

Backends

See https://github.com/snowjet/demo-quote-gen for backend