This is a Spring-based backend for Todos on Tanzu Application Service. See https://github.com/odedia/todo-ui for the frontend.
To run locally:
- Start a local wavefront proxy:
docker run -d \
-e WAVEFRONT_URL=<YOUR-URL> \
-e WAVEFRONT_TOKEN=<YOUR-TOKEN> \
-e JAVA_HEAP_USAGE=512m \
-e WAVEFRONT_PROXY_ARGS="--traceZipkinListenerPorts 9411 --traceZipkinApplicationName=todo-application-local" \
-p 2878:2878 \
-p 9411:9411 \
wavefronthq/proxy:latest
- Run
SPRING_PROFILES_ACTIVE=local mvn spring-boot:run
To run on TAS for VMs:
- Edit
manifest-tas4vms.ymlby pointing to your delpoyed wavefront proxy toute. - Run
mvn clean package. - Run
cf push -f manifest-tas4vms.yml
To run on TAS for Kubernetes:
- Edit WAVEFRONT_URL and WAVEFRONT_TOKEN in
k8s/wavefront.yaml - Run
kubectl apply -f k8s/wavefront.yaml - Run
cf push -f manifest-tas4k8s.yml