Dapr quickstart code samples and tutorials showcasing core Dapr capabilities
Go to file
dependabot[bot] 5c24105778
Bump lodash in /3.distributed-calculator/react-calculator/client (#266)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pruthvidhar R Dhodda <60198385+pruthvidhodda@users.noreply.github.com>
2020-08-11 15:48:07 -07:00
.devcontainer Added files to configure VS codespaces for dapr (#223) 2020-06-04 15:18:51 -07:00
.github Revert "Add 10.hello-docker-compose to build workflow" (#264) 2020-07-16 10:46:35 -07:00
1.hello-world Replace deprecated cli options and k8s annotations (#276) 2020-08-10 14:45:43 -07:00
2.hello-kubernetes Replace deprecated cli options and k8s annotations (#276) 2020-08-10 14:45:43 -07:00
3.distributed-calculator Bump lodash in /3.distributed-calculator/react-calculator/client (#266) 2020-08-11 15:48:07 -07:00
4.pub-sub Replace deprecated cli options and k8s annotations (#276) 2020-08-10 14:45:43 -07:00
5.bindings Replace deprecated cli options and k8s annotations (#276) 2020-08-10 14:45:43 -07:00
6.functions-and-keda Replace deprecated cli options and k8s annotations (#276) 2020-08-10 14:45:43 -07:00
7.middleware Replace deprecated cli options and k8s annotations (#276) 2020-08-10 14:45:43 -07:00
8.observability Replace deprecated cli options and k8s annotations (#276) 2020-08-10 14:45:43 -07:00
9.secretstore Replace deprecated cli options and k8s annotations (#276) 2020-08-10 14:45:43 -07:00
10.hello-docker-compose Replace deprecated cli options and k8s annotations (#276) 2020-08-10 14:45:43 -07:00
11.hello-dapr-slim Replace deprecated cli options and k8s annotations (#276) 2020-08-10 14:45:43 -07:00
CONTRIBUTING.md Add Contribution Guidance in samples repo 2019-10-15 17:20:09 -07:00
LICENSE Adding license header and updating to MIT license. 2019-10-08 19:36:02 -07:00
README.md Add 0.9.0 to version table (#265) 2020-07-16 11:34:06 -07:00
samples-diagrams.pptx Add simple sample for service invocation (#249) 2020-07-10 16:48:02 -07:00

README.md

Dapr Samples

Build Status Join the chat at https://gitter.im/Dapr/samples License: MIT

This repository contains a series of samples that highlight Dapr capabilities. The first sample demonstrates how we run Dapr in standalone mode, while the second highlights how we run the same application in Kubernetes. Each subsequent sample includes instructions for running both in standalone and in Kubernetes.

Getting Started

It is recommended to go through the samples via the Getting Started instructions.

Supported Dapr Runtime version

Dapr is currently under community development with preview releases. The master branch includes breaking changes, therefore ensure that you're running the samples with the right version of Dapr runtime.

Dapr Sample Version Dapr Runtime Version
v0.9.0 v0.9.0
v0.8.0 v0.8.0
v0.7.0 v0.7.0
v0.6.0 v0.6.0
v0.5.0 v0.5.0
v0.4.0 v0.4.0
v0.3.0 v0.3.0
v0.2.0 v0.2.0
v0.1.0 v0.1.0

Samples

Sample Description
1. Hello-world Demonstrates how to run Dapr locally. Highlights service invocation and state management.
2. Hello-kubernetes Demonstrates how to run Dapr in Kubernetes. Highlights service invocation and state management.
3. Distributed-calculator Demonstrates a distributed calculator application that uses Dapr services to power a React web app. Highlights polyglot (multi-language) programming, service invocation and state management.
4. Pub-sub Demonstrates how we use Dapr to enable pub-sub applications. Uses Redis as a pub-sub component.
5. Bindings Demonstrates how we use Dapr to create input and output bindings to other components. Uses bindings to Kafka.
6. Functions-and-keda Demonstrates use of Dapr pub/sub from Azure Functions, as well as composition with KEDA.
7. Middleware Demonstrates use of Dapr middleware to enable OAuth 2.0 authorization.
8. Observability Demonstrates Dapr tracing capabilities. Uses Zipkin as a tracing component.
9. Secret Store Demonstrates the use of Dapr Secrets API.
10. Docker Compose Demonstrates how to get Dapr running locally with Docker Compose.
11. Minimal Init (Dapr Slim) Demonstrates how to run dapr locally, without a dependency on Docker.

SDKs

Find SDK-specific samples in the links below:

To get started with the samples, clone this repository and follow instructions in each sample:

git clone [-b <dapr_version_tag>] https://github.com/dapr/samples.git

Note: See https://github.com/dapr/samples#supported-dapr-runtime-version for supported tags. Use git clone https://github.com/dapr/samples.git when using the edge version of dapr runtime.