janno-p / FbApp

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FbApp

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

Primary Objectives

Prerequisites

Development environment

Install .NET Aspire workload

$ dotnet workload update
$ dotnet workload install aspire

Run local application

$ dotnet run --project src/FbApp.AppHost/FbApp.AppHost.csproj

Open .NET Aspire Dashboard

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.

About

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


Languages

Language:F# 78.4%Language:C# 13.3%Language:Smarty 4.6%Language:JavaScript 3.6%Language:CSS 0.2%