@@ -33,13 +33,13 @@ This tutorial should take about ten minutes.
33
33
34
34
## Step 1. Initialize a new local DDN project
35
35
36
- ``` sh title="Create a new project using the DDN CLI:"
36
+ ``` ddn title="Create a new project using the DDN CLI:"
37
37
ddn supergraph init lambda-tutorial
38
38
```
39
39
40
40
## Step 2. Prepare the PostgreSQL data
41
41
42
- ``` sh title="In your project directory, run:"
42
+ ``` ddn title="In your project directory, run:"
43
43
ddn connector init my_pg -i
44
44
```
45
45
@@ -84,11 +84,11 @@ You can verify this worked by using Adminer to query all records from the `users
84
84
SELECT * FROM users;
85
85
```
86
86
87
- ``` sh title="Next, use the CLI to introspect your PostgreSQL database:"
87
+ ``` ddn title="Next, use the CLI to introspect your PostgreSQL database:"
88
88
ddn connector introspect my_pg
89
89
```
90
90
91
- ``` sh title="Now, track the table from your PostgreSQL database as a model in your DDN metadata:"
91
+ ``` ddn title="Now, track the table from your PostgreSQL database as a model in your DDN metadata:"
92
92
ddn models add my_pg users
93
93
```
94
94
@@ -102,7 +102,7 @@ Metadata Language file to represent the `users` table from PostgreSQL in your AP
102
102
103
103
<TabItem value = " TypeScript" label = " TypeScript" >
104
104
105
- ``` bash title="Run the following command:"
105
+ ``` ddn title="Run the following command:"
106
106
ddn connector init my_ts -i
107
107
```
108
108
@@ -116,7 +116,7 @@ the entrypoint for your connector.
116
116
117
117
<TabItem value = " Python" label = " Python" >
118
118
119
- ``` bash title="Run the following command:"
119
+ ``` ddn title="Run the following command:"
120
120
ddn connector init my_python -i
121
121
```
122
122
@@ -130,7 +130,7 @@ be the entrypoint for your connector.
130
130
131
131
<TabItem value = " Go" label = " Go" >
132
132
133
- ``` bash title="Run the following command:"
133
+ ``` ddn title="Run the following command:"
134
134
ddn connector init my_go -i
135
135
```
136
136
@@ -221,7 +221,7 @@ func FunctionShoutName(ctx context.Context, state *types.State, arguments *Upper
221
221
222
222
<TabItem value = " TypeScript" label = " TypeScript" >
223
223
224
- ``` bash title="Introspect the connector:"
224
+ ``` ddn title="Introspect the connector:"
225
225
ddn connector introspect my_ts
226
226
```
227
227
@@ -234,7 +234,7 @@ ddn command add my_ts shoutName
234
234
235
235
<TabItem value = " Python" label = " Python" >
236
236
237
- ``` bash title="Introspect the connector:"
237
+ ``` ddn title="Introspect the connector:"
238
238
ddn connector introspect my_python
239
239
```
240
240
@@ -247,7 +247,7 @@ ddn command add my_python shoutName
247
247
248
248
<TabItem value = " Go" label = " Go" >
249
249
250
- ``` bash title="Introspect the connector:"
250
+ ``` ddn title="Introspect the connector:"
251
251
ddn connector introspect my_go
252
252
```
253
253
@@ -284,15 +284,15 @@ definition:
284
284
285
285
## Step 7. Create a new build and test
286
286
287
- ` ` ` bash title="Create a new build:"
287
+ ` ` ` ddn title="Create a new build:"
288
288
ddn supergraph build local
289
289
```
290
290
291
- ``` bash title="Start your services:"
291
+ ``` ddn title="Start your services:"
292
292
ddn run docker-start
293
293
```
294
294
295
- ``` bash title="Open your local console:"
295
+ ``` ddn title="Open your local console:"
296
296
ddn console --local
297
297
```
298
298
0 commit comments