Skip to content

alexandreroman/motd-frontend

Repository files navigation

Message of the Day :: Frontend

Note

This is the frontend component of the Message of the Day app

This component is responsible for providing a Web UI:

App screenshot

Running this component on your workstation

Use these commands to run this component on your workstation:

export MOTD_SERVICES_BACKEND=http://localhost:8081
npm i; npm start

Then hit http://127.0.0.1:8080 with your browser.

Deploying with VMware Tanzu Application Platform

Use this command to deploy this component to your favorite Kubernetes cluster:

tanzu apps workload apply -f config/workload.yaml

The platform will take care of building, testing and deploying this component.

This component also loads some configuration from a Git repository.

Run this command to create a Kubernetes Secret out of this Git repository, which will be used by the component at runtime:

kubectl apply -f config/app-operator

Run this command to get deployment status:

tanzu apps workload get motd-frontend