Skip to content

dfbaskin/azure-and-dapr-identity-example

Repository files navigation

Azure/DAPR Identity Example

Blog Posts

Configuring and Running the Application Locally

  1. Set up an Azure Active Directory application for the local application to use (see here). Make sure the local settings in the project are updated.

  2. Set up a domain, testing.local, and TLS certificate that points to your machine (see here).

  3. Ensure that Kubernetes is running on your machine.

  4. Download and install DAPR and Helm.

  5. Ensure the the build tools are installed:

    • .NET SDK v5
    • NodeJS
    • Docker (for building Kubernetes images)
  6. Powershell scripts are provided for initialization. Ensure that the path to the DAPR and Helm executables is included in the PATH.

  7. Initialize DAPR within the Kubernetes cluster:

    packages/dapr-initialization/initialize-dapr.ps1
    
  8. Initialize DAPR state store and pub/sub message broker:

    packages/dapr-initialization/initialize-dapr-redis.ps1
    
  9. Create a Kubernetes namespace for the application:

    packages/nginx-ingress/create-namespace.ps1
    
  10. Install npm packages for the web application:

    cd packages/browser-frontend
    npm install
    
  11. Build the static web site and its image file:

    packages/browser-frontend/deploy/build-frontend-image.ps1
    
  12. Deploy the front-end service to the cluster:

    packages/browser-frontend/deploy/initialize-frontend.ps1
    
  13. Build the users API web site and its image file:

    packages/users-api/deploy/build-users-api-image.ps1
    
  14. Deploy the users API service to the cluster:

    packages/users-api/deploy/initialize-users-api.ps1
    
  15. Deploy the Ingress Controller to the cluster:

    packages/nginx-ingress/initialize-nginx-ingress.ps1
    

Navigate to https://testing.local:31001/.