Skip to content

Commit 4a1290b

Browse files
Robin De Rooijgitbook-bot
authored andcommitted
GitBook: [#106] No subject
1 parent 118e3e9 commit 4a1290b

File tree

10 files changed

+132
-167
lines changed

10 files changed

+132
-167
lines changed
145 KB
Loading

get-started/install/install-as-docker-container.md

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ description: >-
88

99
### Requirements
1010

11+
The container script is distributed via GitHub, so you will need Git to clone and update the TerminusDB bootstrap repo. You will also need Docker running.
12+
1113
A list of prerequisite components depending on your operating system. Click on the required component to download it from the provider's website.
1214

1315
#### Table: Installation requirements
1416

15-
| Component | Version | Required to: | Linux | macOS | Windows |
16-
| -------------------------------------------------------- | -------- | ------------------------------------------------------------ | :---: | :---: | :-----: |
17-
| [Git](https://git-scm.com/downloads) | `Latest` | Clone the TerminusDB bootstrap and run the container script. ||||
18-
| [Git Bash](https://git-scm.com/downloads) | `Latest` | Clone the TerminusDB bootstrap and run the container script. | | ||
19-
| [Sudo](https://www.sudo.ws/download.html) | `Latest` | Access security. ||| |
20-
| [Docker](https://www.docker.com/products/docker-desktop) | `Latest` | Use the TerminusDB docker container. ||||
17+
| Component | Version | Required to: | Linux | macOS | Windows |
18+
| -------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------- | :---: | :---: | :-----: |
19+
| [Git](https://git-scm.com/downloads) | `Latest` | Clone the TerminusDB bootstrap and run the container script. ||||
20+
| [Git Bash](https://git-scm.com/downloads) | `Latest` | Windows users should use the application "Git Bash" for all terminal commands described below, this application comes with Git for Windows. | | ||
21+
| [Sudo](https://www.sudo.ws/download.html) | `Latest` | Access security (optional). ||| |
22+
| [Docker](https://www.docker.com/products/docker-desktop) | `Latest` | Use the TerminusDB docker container. ||||
2123

2224
{% hint style="info" %}
2325
**Docker memory allocation on Windows**\
@@ -26,7 +28,7 @@ On Windows, the default memory allocated for the Docker is **2GB**. TerminusDB i
2628

2729
{% hint style="info" %}
2830
**Linux package manager**\
29-
On Linux, use your distro's package manager for containerized deployments. Click on the Package manager link in the requirements table above for more information.
31+
On Linux, use your distro's package manager for containerized deployments or find more information here: [https://www.docker.com/products/container-runtime](https://www.docker.com/products/container-runtime) 
3032
{% endhint %}
3133

3234
## Install steps
@@ -51,7 +53,7 @@ cd terminusdb-bootstrap
5153

5254
### Run the container
5355

54-
Run the container using script `terminusdb-container`.
56+
Run the container using `terminusdb-container` script.
5557

5658
#### Running for the first time
5759

@@ -126,6 +128,38 @@ The TerminusDB local dashboard is included within terminusdb-bootstrap. The dash
126128
localhost:6363/dashboard/
127129
```
128130

131+
### Use GraphQL
132+
133+
TerminusDB hosts a GraphQL endpoint at:
134+
135+
```
136+
SERVERNAME/api/graphql/ORG/DATAPRODUCT
137+
```
138+
139+
For instance, with a data product named `admin/people`, and a locally installed TerminusDB, you can query it at:
140+
141+
```
142+
http://127.0.0.1:6363/api/graphql/admin/people
143+
```
144+
145+
TerminusDB ships with a GraphiQL graphical GraphQL query interface and schema browser. This is a quick way to get acquainted with GraphQL in TerminusDB.
146+
147+
You can reach this browser at:
148+
149+
```
150+
http://127.0.0.1:6363/api/graphiql/admin/people
151+
```
152+
153+
You will need to set your Authorization header in the Header dialog box at the bottom center.
154+
155+
For instance, in the default install, as:
156+
157+
```json
158+
{
159+
"Authorization": "Basic YWRtaW46cm9vdA=="
160+
}
161+
```
162+
129163
## Environment configuration
130164

131165
The container script uses a set of environment variables with default values. You can configure the environment by setting these variables.

get-started/tutorials.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ description: Quick links to tutorials to help you learn
55
# Tutorials
66

77
{% tabs %}
8-
{% tab title="Getting Started" %}
8+
{% tab title="GraphQL" %}
9+
* ****[**Build a Blog-Focused CMS using TerminusDB and GraphQL**](https://github.com/terminusdb/terminusdb-tutorials/blob/master/terminusBlog)****
10+
* ****[**Import RDF into TerminusDB and query the data using GraphQL** ](https://github.com/terminusdb/terminusdb-tutorials/blob/master/star-wars)****
11+
{% endtab %}
912

13+
{% tab title="Getting Started" %}
14+
****
1015

1116
* ****[**Getting Started with the JavaScript client - 5-part tutorial**](https://github.com/terminusdb/terminusdb-tutorials/tree/master/getting\_started/javascript-client)****
1217
* [Lesson 1 - Install, start project, and create an empty database with schema](https://github.com/terminusdb/terminusdb-tutorials/blob/master/getting\_started/javascript-client/lesson\_1.md)

guides/how-to-guides/administer-the-database.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ description: The basics for administering your database
66

77
There are several ways to work with TerminusDB. This section aims to point you in the right direction to enable you to get started with ease.Follow the links below to take you to the area of interest:
88

9-
| Getting Started | Further Reading |
10-
| --------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
11-
|[JavaScript Client Basics](../interface-guides/javascript-client.md) | [​​JavaScript Client Reference Guide](../reference-guides/javascript-client-reference/woqlclient.md) |
12-
| ​​[Python Client Basics](../interface-guides/python-client.md) | [​​Python Client Reference Guide](../reference-guides/python-client-reference/terminusdb\_client.client.md) |
13-
| ​​[Command Line Interface](../interface-guides/cli.md)| |
9+
| Getting Started | Further Reading |
10+
| ---------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
11+
|[JavaScript Client Basics](../interface-guides/javascript-client.md) | [​​JavaScript Client Reference Guide](../reference-guides/javascript-client-reference/woqlclient.md) |
12+
| ​​[Python Client Basics](../interface-guides/python-client.md) | [​​Python Client Reference Guide](../reference-guides/python-client-reference/terminusdb\_client.client.md) |
13+
| ​​[Command Line Interface](../interface-guides/cli.md)| |
14+
| [GraphQL Reference](../reference-guides/graphql-reference/graphql\_query.md) | |
1415

1516
​​​​

guides/how-to-guides/manage-access-control.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Go to [**http://localhost:6363/dashboard**](http://localhost:6363/dashboard) **a
2424

2525
Login to the TerminusDB Dashboard using your admin credentials. if you did not change it, the default admin password is root.
2626

27-
<figure><img src="../../.gitbook/assets/login.png" alt=""><figcaption></figcaption></figure>
27+
<figure><img src="../../.gitbook/assets/login (1).png" alt=""><figcaption></figcaption></figure>
2828

2929

3030

@@ -70,7 +70,7 @@ The top bar from right to left displays:
7070
* Enter the Data Product ID and name&#x20;
7171
* Click _**Create Data Product**_ button
7272

73-
<figure><img src="../../.gitbook/assets/06-terminusdb-access-control-new-dataproduct (1).png" alt=""><figcaption></figcaption></figure>
73+
<figure><img src="../../.gitbook/assets/06-terminusdb-access-control-new-dataproduct.png" alt=""><figcaption></figcaption></figure>
7474

7575
<figure><img src="../../.gitbook/assets/07-terminusdb-access-control-new-dataproduct.png" alt=""><figcaption></figcaption></figure>
7676

guides/reference-guides/graphql-reference/connecting_to_graphql.md

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ TerminusDB hosts a GraphQL endpoint at:
66
SERVERNAME/api/graphql/ORG/DATAPRODUCT
77
```
88

9-
For instance, with a dataproduct named `admin/people`, and a locally
10-
installed TerminusDB, you can query it at:
9+
For instance, with a data product named `admin/people`, and a locally installed TerminusDB, you can query it at:
1110

1211
```
1312
http://127.0.0.1:6363/api/graphql/admin/people
@@ -19,23 +18,17 @@ For TerminuX (TO BE RELEASED) you can use the following URL:
1918
https://cloud.terminusdb.com/ORG/api/graphql/ORG/DATA_PRODUCT
2019
```
2120

22-
Where `ORG` is your organization, and `DATA_PRODUCT` is the name of your
23-
data product.
21+
Where `ORG` is your organization, and `DATA_PRODUCT` is the name of your data product.
2422

2523
## Authentication
2624

27-
Since TerminusDB requires authenatication to access data products, you
28-
will need to use the authentication method that has been configured
29-
for your server.
25+
Since TerminusDB requires authentication to access data products, you will need to use the authentication method that has been configured for your server.
3026

3127
### Basic Auth
3228

33-
Using Basic Auth, the method which is default in locally installed
34-
TerminusDB's, you can supply the Authorization header, with your basic
35-
auth. (To generate a Basic Auth string, see [Basic Auth Generator](https://www.blitter.se/utils/basic-authentication-header-generator/)).
29+
Using Basic Auth, the default method in locally installed TerminusDBs, you can supply the Authorization header, with your basic auth. (To generate a Basic Auth string, see [Basic Auth Generator](https://www.blitter.se/utils/basic-authentication-header-generator/)).
3630

37-
For example, if you would like to connect to `admin/people` with the
38-
apollo client to download the associated GraphQL schema, simply use:
31+
For example, if you would like to connect to `admin/people` with the apollo client to download the associated GraphQL schema, simply use:
3932

4033
```shell
4134
npx apollo client:download-schema --endpoint=http://127.0.0.1:6363/api/graphql/admin/people schema.graphql --header='Authorization: Basic YWRtaW46cm9vdA=='
@@ -45,30 +38,27 @@ npx apollo client:download-schema --endpoint=http://127.0.0.1:6363/api/graphql/a
4538

4639
In TerminusX you can use an API key with the following header.
4740

48-
For instance, with the apollo client, you can download your schema as
49-
follows:
41+
For instance, with the apollo client, you can download your schema as follows:
5042

5143
```shell
5244
npx apollo client:download-schema --endpoint=https://cloud.terminusdb.com/TEAM/api/graphql/TEAM/people schema.graphql --header="Authorization: Token $(cat ~/my_token_file)"
5345
```
46+
5447
Where `my_token_file` contains an API token for TerminusX.
5548

5649
## GraphiQL
5750

58-
![GraphiQL dashboard](some_url_here)
51+
<figure><img src="../../../.gitbook/assets/millenium_falcon_graphql.png" alt="GraphiQL interface screen shot"><figcaption></figcaption></figure>
5952

60-
TerminusDB ships with a GraphiQL graphical GraphQL query interface and
61-
schema browser. This is a quick way to get aquainted with GraphQL in
62-
TerminusDB.
53+
TerminusDB ships with a GraphiQL graphical GraphQL query interface and schema browser. This is a quick way to get acquainted with GraphQL in TerminusDB.
6354

6455
You can reach this browser at:
6556

6657
```
6758
http://127.0.0.1:6363/api/graphiql/admin/people
6859
```
6960

70-
You will also need to set your Authorization header in the Header
71-
dialog box at the bottom centre.
61+
You will also need to set your Authorization header in the Header dialog box at the bottom center.
7262

7363
For instance, in the default install, as:
7464

0 commit comments

Comments
 (0)