# DAPR Services (ignore for now)

## Configure local DAPR State and Messaging

Create a `deploy` directory in the `azure-quickstart` directory to house yaml files.

Create two files `redis-state.yaml` and `redis-pubsub.yaml` in the `deploy` directory and configure according to [Dapr's instructions](https://docs.dapr.io/getting-started/configure-state-pubsub/#create-state-store-component), these will be used for local state and messaging, when deploying to production azure services will be leveraged instead. *One benefit of DAPR is allowing you to easily swap out infrastructure components.*

Apply the configuration:

```
kubectl apply -f deploy/redis-state.yaml
kubectl apply -f deploy/redis-pubsub.yaml
```

## &#x20;Additional Services

Create four additional directories in the `azure-quickstart` directory for kubernetes services:

```
/azure-quickstart
    /identity
    /search
    /sharable
    /content-moderation
```

### Identity

Create an instance of the terminal and  navigate to the `/azure-quickstart/identity` directory&#x20;

Initialize a new project using `npm init` command and accept all the defaults.

Add additional NPM modules to set up basic services: `npm i express express-validator`

Create an

s

### Search

### Sharable

### Content Moderation

To start the mininkube dashboard in a browser window run:

`minikube dashboard`

*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ecfmg.gitbook.io/azure-serverless-quickstart/adding-functionality/dapr/dapr-services.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
