Skip to content

Latest commit

 

History

History
98 lines (66 loc) · 2.43 KB

README.md

File metadata and controls

98 lines (66 loc) · 2.43 KB

FbApp

Playground application for trying out new technologies, libraries, frameworks, patterns, tools etc.

Primary Objectives

Prerequisites

Run local application

Development environment

Quick Start

Configure Google OAuth authentication

Use Google Developer Console to register new application for Google authentication:

  • Authorized JavaScript Origins: https://localhost:8090
  • Authorized redirect URIs: https://localhost:8090/connect/google/callback

Add src/FbApp.Auth/appsettings.user.json configuration file with credentials provided by Google client application registration.

{
  "Authentication": {
    "Google": {
      "ClientId": "<redacted>",
      "ClientSecret": "<redacted>"
    }
  }
}

Configure kubernetes cluster

Install dapr

helm repo add dapr https://dapr.github.io/helm-charts/

helm repo update

helm upgrade --install dapr dapr/dapr \
--namespace dapr-system \
--create-namespace \
--wait

kubectl port-forward service/dapr-dashboard 8080:8080 --namespace dapr-system

Install ingress controller

helm repo add dapr https://kubernetes.github.io/ingress-nginx

helm repo update

helm upgrade --install ingress-nginx ingress-nginx/ingress-nginx \
--namespace ingress-nginx \
--create-namespace \
--set controller.config.use-forwarded-headers=true
--set controller.service.ports.https=8090
--wait

Run development environment

$ tilt up

Open Tilt Dashboard to monitor running components.

Open Application for demo.

Misc.

docker context ls
docker context user default

\\wsl$\docker-desktop-data\data\k8s-pvs

kubectl exec --stdin --tty fbapp-api-database-mongodb-0 -n fbapp -- /bin/bash