{"@attributes":{"version":"2.0"},"channel":{"title":"Getting started with Dapr on Dapr Docs","link":"https:\/\/docs.dapr.io\/getting-started\/","description":"Recent content in Getting started with Dapr on Dapr Docs","generator":"Hugo","language":"en","item":[{"title":"Install the Dapr CLI","link":"https:\/\/docs.dapr.io\/getting-started\/install-dapr-cli\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.dapr.io\/getting-started\/install-dapr-cli\/","description":"<p>You&rsquo;ll use the Dapr CLI as the main tool for various Dapr-related tasks. You can use it to:<\/p>\n<ul>\n<li>Run an application with a Dapr sidecar.<\/li>\n<li>Review sidecar logs.<\/li>\n<li>List running services.<\/li>\n<\/ul>\n<p>The Dapr CLI works with both <a href=\"https:\/\/docs.dapr.io\/operations\/hosting\/self-hosted\/\">self-hosted<\/a> and <a href=\"https:\/\/docs.dapr.io\/operations\/hosting\/kubernetes\/\">Kubernetes<\/a> environments.<\/p>\n\n\n<div class=\"alert alert-primary\" role=\"alert\">\n<h4 class=\"alert-heading\">Before you begin<\/h4>\n\n In Docker Desktop&rsquo;s advanced options, verify you&rsquo;ve allowed the default Docker socket to be used. This option is not available if you are using WSL integration on Windows.\n<img src=\"https:\/\/docs.dapr.io\/images\/docker-desktop-setting.png\" width=800 style=\"padding-bottom:15px;\">\n\n<\/div>\n\n<h3 id=\"step-1-install-the-dapr-cli\">Step 1: Install the Dapr CLI<\/h3>\n\n\n\n\n\n\n\n\n\n\n<ul class=\"nav nav-tabs\" id=\"tabs-3\" role=\"tablist\">\n <li class=\"nav-item\">\n <button class=\"nav-link active\"\n id=\"tabs-03-00-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tabs-03-00\" role=\"tab\"\n data-td-tp-persist=\"linux\" aria-controls=\"tabs-03-00\" aria-selected=\"true\">\n Linux\n <\/button>\n <\/li><li class=\"nav-item\">\n <button class=\"nav-link\"\n id=\"tabs-03-01-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tabs-03-01\" role=\"tab\"\n data-td-tp-persist=\"windows\" aria-controls=\"tabs-03-01\" aria-selected=\"false\">\n Windows\n <\/button>\n <\/li><li class=\"nav-item\">\n <button class=\"nav-link\"\n id=\"tabs-03-02-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tabs-03-02\" role=\"tab\"\n data-td-tp-persist=\"macos\" aria-controls=\"tabs-03-02\" aria-selected=\"false\">\n MacOS\n <\/button>\n <\/li><li class=\"nav-item\">\n <button class=\"nav-link\"\n id=\"tabs-03-03-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tabs-03-03\" role=\"tab\"\n data-td-tp-persist=\"binaries\" aria-controls=\"tabs-03-03\" aria-selected=\"false\">\n Binaries\n <\/button>\n <\/li>\n<\/ul>\n\n<div class=\"tab-content\" id=\"tabs-3-content\">\n \n <div class=\"tab-body tab-pane fade show active\"\n id=\"tabs-03-00\" role=\"tabpanel\" aria-labelled-by=\"tabs-03-00-tab\" tabindex=\"3\">\n <h4 id=\"install-from-terminal\">Install from Terminal<\/h4>\n<p>Install the latest Linux Dapr CLI to <code>\/usr\/local\/bin<\/code>:<\/p>"},{"title":"Initialize Dapr in your local environment","link":"https:\/\/docs.dapr.io\/getting-started\/install-dapr-selfhost\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.dapr.io\/getting-started\/install-dapr-selfhost\/","description":"<p>Now that you&rsquo;ve <a href=\"https:\/\/docs.dapr.io\/getting-started\/install-dapr-cli\/\">installed the Dapr CLI<\/a>, use the CLI to initialize Dapr on your local machine.<\/p>\n<p>Dapr runs as a sidecar alongside your application. In self-hosted mode, this means it is a process on your local machine. By initializing Dapr, you:<\/p>\n<ul>\n<li>Fetch and install the Dapr sidecar binaries locally.<\/li>\n<li>Create a development environment that streamlines application development with Dapr.<\/li>\n<\/ul>\n<p>Dapr initialization includes:<\/p>\n<ol>\n<li>Running a <strong>Redis container instance<\/strong> to be used as a local state store and message broker.<\/li>\n<li>Running a <strong>Zipkin container instance<\/strong> for observability.<\/li>\n<li>Creating a <strong>default components folder<\/strong> with component definitions for the above.<\/li>\n<li>Running a <strong>Dapr placement service container instance<\/strong> for local actor support.<\/li>\n<li>Running a <strong>Dapr scheduler service container instance<\/strong> for job scheduling.<\/li>\n<\/ol>\n\n\n<div class=\"alert alert-primary\" role=\"alert\">\n<h4 class=\"alert-heading\">Kubernetes Development Environment<\/h4>\n\n To initialize Dapr in your local or remote <strong>Kubernetes<\/strong> cluster for development (including the Redis and Zipkin containers listed above), see <a href=\"https:\/\/docs.dapr.io\/operations\/hosting\/kubernetes\/kubernetes-deploy\/#install-dapr-from-the-official-dapr-helm-chart-with-development-flag\">how to initialize Dapr for development on Kubernetes<\/a>\n\n<\/div>\n\n\n\n<div class=\"alert alert-primary\" role=\"alert\">\n<h4 class=\"alert-heading\">Docker<\/h4>\n\n <p>The recommended development environment requires <a href=\"https:\/\/docs.docker.com\/install\/\">Docker<\/a>. While you can <a href=\"https:\/\/docs.dapr.io\/operations\/hosting\/self-hosted\/self-hosted-no-docker\/\">initialize Dapr without a dependency on Docker<\/a>, the next steps in this guide assume the recommended Docker development environment.<\/p>"},{"title":"Use the Dapr API","link":"https:\/\/docs.dapr.io\/getting-started\/get-started-api\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.dapr.io\/getting-started\/get-started-api\/","description":"<p>In this guide, you&rsquo;ll simulate an application by running the sidecar and calling the state management API directly.\nAfter running Dapr using the Dapr CLI, you&rsquo;ll:<\/p>\n<ul>\n<li>Save a state object.<\/li>\n<li>Read\/get the state object.<\/li>\n<li>Delete the state object.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/docs.dapr.io\/developing-applications\/building-blocks\/state-management\/\">Learn more about the state building block and how it works in our concept docs<\/a>.<\/p>\n<h3 id=\"pre-requisites\">Pre-requisites<\/h3>\n<ul>\n<li><a href=\"https:\/\/docs.dapr.io\/getting-started\/install-dapr-cli\/\">Install Dapr CLI<\/a>.<\/li>\n<li><a href=\"https:\/\/docs.dapr.io\/getting-started\/install-dapr-selfhost\/\">Run <code>dapr init<\/code><\/a>.<\/li>\n<\/ul>\n<h3 id=\"step-1-run-the-dapr-sidecar\">Step 1: Run the Dapr sidecar<\/h3>\n<p>The <a href=\"https:\/\/docs.dapr.io\/reference\/cli\/dapr-run\/\"><code>dapr run<\/code><\/a> command normally runs your application and a Dapr sidecar. In this case,\nit only runs the sidecar since you are interacting with the state management API directly.<\/p>"}]}}