Coder Social home page Coder Social logo

dapr / docs Goto Github PK

View Code? Open in Web Editor NEW
994.0 56.0 725.0 275.08 MB

Dapr user documentation, used to build docs.dapr.io

Home Page: https://docs.dapr.io

License: Creative Commons Attribution 4.0 International

SCSS 17.08% HTML 77.95% JavaScript 2.43% Python 2.29% Shell 0.24%

docs's Introduction

Dapr documentation

GitHub License GitHub issue custom search in repo Discord YouTube Channel Views X (formerly Twitter) Follow

If you are looking to explore the Dapr documentation, please go to the documentation website:

https://docs.dapr.io

This repo contains the markdown files which generate the above website. See below for guidance on running with a local environment to contribute to the docs.

Branch guidance

The Dapr docs handles branching differently than most code repositories. Instead of having a master or main branch, every branch is labeled to match the major and minor version of a runtime release.

The following branches are currently maintained:

Branch Website Description
v1.14 (primary) https://docs.dapr.io Latest Dapr release documentation. Typo fixes, clarifications, and most documentation goes here.
v1.15 (pre-release) https://v1-15.docs.dapr.io/ Pre-release documentation. Doc updates that are only applicable to v1.15+ go here.

For more information visit the Dapr branch structure document.

Contribution guidelines

Before making your first contribution, make sure to review the contributing section in the docs.

Overview

The Dapr docs are built using Hugo with the Docsy theme, hosted on an Azure Static Web App.

The daprdocs directory contains the hugo project, markdown files, and theme configurations.

Setup with a devcontainer

This repository comes with a devcontainer configuration that automatically installs all the required dependencies and VSCode extensions to build and run the docs.

This devcontainer can be used to develop locally with VSCode or via GitHub Codespaces completely in the browser. Other IDEs that support devcontainers can be used but won't have the extensions preconfigured and will likely have different performance characteristics.

Pre-requisites

Environment setup

  1. Fork and clone this repository.

  2. Open the forked repository in VS Code

code .
  1. When prompted, click "Reopen in Container" to open the repository in the devcontainer.

Continue with the Run local server steps.

Setup without a devcontainer

Pre-requisites

Environment setup

  1. Ensure pre-requisites are installed.

  2. Fork and clone this repository.

  3. Change to daprdocs directory:

cd ./daprdocs
  1. Update submodules:
git submodule update --init --recursive
  1. Install npm packages:
npm install

Run local server

  1. Make sure you're in the daprdocs directory
  2. Run
hugo server
  1. Navigate to http://localhost:1313/

Update docs

  1. Ensure you are in your forked repo
  2. Create new branch
  3. Commit and push changes to forked branch
  4. Submit pull request from downstream branch to the upstream branch for the correct version you are targeting
  5. Staging site will automatically get created and linked to PR to review and test

Code of Conduct

Please refer to our Dapr community code of conduct.

docs's People

Contributors

1046102779 avatar aaroncrawfis avatar amanbha avatar arschles avatar artursouza avatar berndverst avatar cgillum avatar daixiang0 avatar greenie-msft avatar halspang avatar hhunter-ms avatar italypaleale avatar jasonviviano avatar joshvanl avatar lmwf avatar mchmarny avatar mikeee avatar msfussell avatar mukundansundar avatar newbe36524 avatar nyemade-uversky avatar pkedy avatar salaboy avatar shalabhms avatar shubham1172 avatar taction avatar trondhindenes avatar willtsai avatar yaron2 avatar youngbupark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs's Issues

Hello World sample on local Mac trouble: Temporary error when accepting new connections

Following the instructions.

stephenrwalli$ dapr list
No dapr instances found.
stephenrwalli$ dapr --version
cli version: 0.4.0-alpha.2
runtime version: edge
stephenrwalli$ dapr init
⌛  Making the jump to hyperspace...
✅  Downloading binaries and setting up components...
✅  Success! Dapr is up and running
stephenrwalli$ dapr run --app-id mynode --app-port 3000 --port 3500 node app.js
ℹ️  Starting Dapr with id mynode. HTTP Port: 3500. gRPC Port: 61542
== DAPR == time="2019-10-10T20:52:38-07:00" level=info msg="starting Dapr Runtime -- version edge -- commit f62dc31-dirty"
== DAPR == time="2019-10-10T20:52:38-07:00" level=info msg="log level set to: info"
== DAPR == time="2019-10-10T20:52:38-07:00" level=info msg="standalone mode configured"
== DAPR == time="2019-10-10T20:52:38-07:00" level=info msg="dapr id: mynode"
== DAPR == time="2019-10-10T20:52:38-07:00" level=info msg="loaded component messagebus (pubsub.redis)"
== DAPR == time="2019-10-10T20:52:38-07:00" level=info msg="loaded component statestore (state.redis)"
== DAPR == time="2019-10-10T20:52:38-07:00" level=info msg="application protocol: http. waiting on port 3000"
✅  You're up and running! Both Dapr and your app logs will appear here.

== APP == Node App listening on port 3000!
== DAPR == time="2019-10-10T20:52:39-07:00" level=info msg="application discovered on port 3000"
== DAPR == 2019/10/10 20:52:39 redis: connecting to localhost:6379
== DAPR == 2019/10/10 20:52:39 redis: connected to localhost:6379 (localAddr: [::1]:61570, remAddr: [::1]:6379)
== DAPR == time="2019-10-10T20:52:39-07:00" level=info msg="actor runtime started. actor idle timeout: 1h0m0s. actor scan interval: 30s"
== DAPR == time="2019-10-10T20:52:39-07:00" level=info msg="actors: starting connection attempt to placement service at localhost:50005"
== DAPR == time="2019-10-10T20:52:39-07:00" level=info msg="http server is running on port 3500"
== DAPR == time="2019-10-10T20:52:39-07:00" level=info msg="gRPC server is running on port 61542"
== DAPR == time="2019-10-10T20:52:39-07:00" level=info msg="actors: established connection to placement service at localhost:50005"
== DAPR == 2019/10/10 20:53:13 Temporary error when accepting new connections: accept tcp4 0.0.0.0:3500: accept: too many open files
== DAPR == time="2019-10-10T20:53:14-07:00" level=warning msg="failed to broadcast address to local network: could not determine host IP addresses for Stephens-MacBook-Pro."
== DAPR == time="2019-10-10T20:53:14-07:00" level=info msg="dapr initialized. Status: Running. Init Elapsed 35616.638603ms"

Note the logged error above. Also confused at the dapr runtime version 'edge'. I did update my version of dapr because I was running an older version from the other day that failed. I stopped dapr, stopped and removed running containers, downloaded and installed the new CLI, and ran dapr init again.

In another terminal window.

stephenrwalli$ docker ps -a
CONTAINER ID        IMAGE                                COMMAND                  CREATED              STATUS              PORTS                      NAMES
57b860983ac3        actionscore.azurecr.io/dapr:latest   "./placement"            About a minute ago   Up About a minute   0.0.0.0:50005->50005/tcp   dapr_placement
b8f1fb5626d8        redis                                "docker-entrypoint.s…"   About a minute ago   Up About a minute   0.0.0.0:6379->6379/tcp     elated_engelbart
stephenrwalli$ curl -XPOST -d @sample.json http://localhost:3500/v1.0/invoke/mynode/method/neworder
curl: (52) Empty reply from server
stephenrwalli$ node --version
v12.11.1
stephenrwalli$ dapr --version
cli version: 0.4.0-alpha.2
runtime version: edge
stephenrwalli$ docker --version
Docker version 19.03.2, build 6a30dfc
stephenrwalli$

Running on MacOS 10.14.6.
Ideas?

Don't use 'X-' in HTTP headers

The IETF guidance to prefix X- to experimental headers or to other extension field types has been deprecated since June 2012, per RFC 6648.

I'd suggest prefixing with Dapr- where you feel namespacing is necessary.

Installing dapr in standalone mode on Windows need to switch to Linux containers in Docker Desktop

Expected Behavior

Following the instructions in https://github.com/dapr/docs/blob/master/getting-started/environment-setup.md for Windows, after running "dapr init", I expect to see daprio/dapr:latest and redis container images running.

Actual Behavior

I did not see daprio/dapr:latest and redis containers. Below is what I saw.

PS C:\dapr> dapr init
Making the jump to hyperspace... Downloading binaries and setting up components... Success! Dapr is up and running
PS C:\dapr> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

After I switch Docker Desktop to use Linux containers, I was able to see the two containers running after 'dapr init'.

Steps to Reproduce the Problem

Set Docker Desktop to use Windows container and then run 'dapr init'.

Typos in docs

Expected Behavior

Should not have typos.

Actual Behavior

I found many typos in the documents.

Steps to Reproduce the Problem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.