This project is an example of a UI and API integrated with APS Kong API Gateway and Keycloak Identity Provider.
Reference: https://github.com/BCDevOps/developer-experience/blob/master/apps/artifactory/DEVHUB-README.md
export REPO_NAME=""
docker login -u <USER_NAME> -p <USER_PASSWORD> artifacts.developer.gov.bc.ca/${REPO_NAME}
Microservices:
cd microservices/hello-py-api
docker build --tag artifacts.developer.gov.bc.ca/${REPO_NAME}/hello-py-api:latest .
docker push artifacts.developer.gov.bc.ca/${REPO_NAME}/hello-py-api
UI:
cd ui/aps-ref-ui
docker build --tag artifacts.developer.gov.bc.ca/${REPO_NAME}/aps-ref-ui:latest .
docker push artifacts.developer.gov.bc.ca/${REPO_NAME}/aps-ref-ui
kubectl create secret docker-registry artifactory-pull \
--docker-server=artifacts.developer.gov.bc.ca \
--docker-username=<username> \
--docker-password=<password> \
--docker-email=<username>@<namespace>.local
helm dependency update ./chart
helm upgrade --install aps-ref ./chart
hello-py-api follows the FastAPI
Tutorial: https://fastapi.tiangolo.com/tutorial/first-steps/
pip install -r requirements.txt
uvicorn app.main:app --reload
hello-ui uses NextJS
and built running npx create-next-app aps-ref-ui
npm run dev