Covid-live is a reactive fullstack POC, that displays live COVID-19 stats.
requirements: Angular cli, docker-compose, java 11
mongodb:
docker-compose up mongo -d
backend:
./gradlew :bootRun
frontend:
ng serve
build image for backend:
./gradlew jibDockerBuild --image=stats-backend
The frontend build will be handled by docker-compose
docker-compose up -d
Frontend will be served at: localhost:80/
API: localhost:80/api
Will provide more information on this setup ASAP.
Configuration is available under /kube
Runs a stateful set with 3 instances of mongodb replica sets.
Build the image with /frontend/build_kube.sh
path: /api/stats
/
: get the global total infected,
/countries
: get information per country,
/countries/{country}
: get info for the given country
/watch/total
: streams total stats as server sent events