Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dventimihasura readme 01 #2

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,23 +208,20 @@ And you should see this:
### Start the standalone instance

```shell
chmod +x run-local-connector.sh
./run-local-connector.sh file
./run-connector-local.sh file
```
You can start any adapter by using the names of the adapter with the `./adapters` directory.

### Create a Supergraph

```shell
ddn supergraph init test-connector
cd test-connector
ddn supergraph init test-connector && cd test-connector
```

### Create the connector HML file

```shell
ddn connector-link add calcite --configure-host http://local.hasura.dev:8080
sed -i.bak -e '11,13d' ./app/metadata/calcite.hml
ddn connector-link add calcite --configure-host http://local.hasura.dev:8080 && sed -i.bak -e '11,13d' ./app/metadata/calcite.hml
```
### Start the Supergraph
```shell
Expand All @@ -242,8 +239,7 @@ ddn supergraph build local

### Restart the Supergraph
```shell
docker compose down
ddn run docker-start
docker compose down && ddn run docker-start
```

### View in console
Expand Down
2 changes: 1 addition & 1 deletion run-connector-local.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd adapters/$1
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 OTEL_SERVICE_NAME=app_calcite LOG_LEVEL=debug OTEL_METRICS_EXPORTER=console OTEL_TRACES_EXPORTER=console OTEL_LOG_EXPORTER=consol RUST_LOG=info cargo run --package ndc-calcite --bin ndc-calcite -- serve --configuration=.
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 OTEL_SERVICE_NAME=app_calcite LOG_LEVEL=debug OTEL_METRICS_EXPORTER=console OTEL_TRACES_EXPORTER=console OTEL_LOG_EXPORTER=console RUST_LOG=info cargo run --package ndc-calcite --bin ndc-calcite -- serve --configuration=.
Loading