Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dapr/cpp-sdk
C++ SDK for Dapr
https://github.com/dapr/cpp-sdk
Last synced: about 1 month ago
JSON representation
C++ SDK for Dapr
- Host: GitHub
- URL: https://github.com/dapr/cpp-sdk
- Owner: dapr
- License: apache-2.0
- Created: 2019-11-01T17:35:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-26T01:11:34.000Z (5 months ago)
- Last Synced: 2024-08-03T09:07:35.794Z (4 months ago)
- Language: Makefile
- Size: 995 KB
- Stars: 36
- Watchers: 16
- Forks: 16
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-dapr - Dapr C++ SDK - Dapr SDK for C++ (Uncategorized / Uncategorized)
README
## C++ SDK for Dapr
Alpha quality.
### Prerequisites
> Note: C++ highly depends on the installed dependencies in the system. This project uses VSCode Remote Container environment to build and develop cpp-sdk in a consistent way.
1. Install [Docker CLI](https://docs.docker.com/get-started/)
2. Install [VSCode](https://code.visualstudio.com/download)
3. Install [VSCode Remote - Container extension](https://code.visualstudio.com/docs/remote/containers)Alternatively, you can build the image yourself, based on the Dockerfile in the repository:
```bash
docker build -t cppsdk .
```Then you can access the container's shell and execute commands in it:
```bash
docker run -it -v $(pwd):/sdk cppsdk /bin/bash
```### To refresh .proto files from upstream dapr
1. Rebuild and commit generated API
```bash
export DAPR_TARGET=
make refresh_proto_files && make && git add src/dapr/proto/*/v1/*{.cc,.h} dapr/proto/*/v1/*.proto
git commit -m "Updating to dapr runtime $DAPR_TARGET"
```
2. Submit a PR with the changes### Build library
1. Make sure that you enable vscode remote container
2. Build client
```bash
make all
```### Run the example validation
1. Make sure that you enable vscode remote container
2. Run the example validation
```bash
cd examples/echo_app/ && mm.py README.md && echo SUCCESS
```