Skip to content

Commit c9163ab

Browse files
committed
adjust docs in README for TypeDB extension
1 parent 582f992 commit c9163ab

2 files changed

Lines changed: 15 additions & 17 deletions

File tree

typedb/README.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ TypeDB on LocalStack
33

44
This repo contains a [LocalStack Extension](https://github.com/localstack/localstack-extensions) that facilitates developing [TypeDB](https://typedb.com)-based applications locally.
55

6+
After installing the extension, a TypeDB server instance will become available under `typedb.localhost.localstack.cloud:4566`, allowing you to create and manage TypeDB databases directly from your AWS applications running in LocalStack.
7+
8+
For example, you could create a microservice backed by a Lambda function that connects to a TypeDB database upon invocation. See [here](https://github.com/typedb-osi/typedb-localstack-demo) for a simple example application that makes use of this extension.
9+
10+
## Configuration
11+
12+
The following environment variables can be passed to the LocalStack container (make sure to prefix them with `LOCALSTACK_...` when using the `localstack start` CLI), to steer the behavior of the extension:
13+
14+
* `TYPEDB_FLAGS`: Additional user-defined command args to pass to the TypeDB container.
15+
* `TYPEDB_HTTP2_PROXY`: Flag to enable/disable HTTP2 proxy for gRPC traffic (use this if you experience network issues, and use the HTTP variant of the TypeDB driver).
16+
617
## Prerequisites
718

819
* Docker
@@ -20,22 +31,8 @@ localstack extensions install "git+https://github.com/localstack/localstack-exte
2031

2132
## Install local development version
2233

23-
To install the extension into LocalStack in developer mode, you will need Python 3.13, and create a virtual environment in the extensions project.
24-
25-
In the newly generated project, simply run
34+
Please refer to the docs [here](https://github.com/localstack/localstack-extensions?tab=readme-ov-file#start-localstack-with-the-extension) for instructions on how to start the extension in developer mode.
2635

27-
```bash
28-
make install
29-
```
36+
## License
3037

31-
Then, to enable the extension for LocalStack, run
32-
33-
```bash
34-
localstack extensions dev enable .
35-
```
36-
37-
You can then start LocalStack with `EXTENSION_DEV_MODE=1` to load all enabled extensions:
38-
39-
```bash
40-
EXTENSION_DEV_MODE=1 localstack start
41-
```
38+
The code in this repo is available under the Apache 2.0 license.

typedb/localstack_typedb/extension.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
class TypeDbExtension(ProxiedDockerContainerExtension):
1616
name = "typedb"
1717

18+
# pattern of the hostname under which the extension is accessible
1819
HOST = "typedb.<domain>"
1920
# name of the Docker image to spin up
2021
DOCKER_IMAGE = "typedb/typedb"

0 commit comments

Comments
 (0)