-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TELESTION-444 Write frontend getting started
Use Deno land module for `telestion` library imports for Deno based backend services
- Loading branch information
Showing
5 changed files
with
9 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,7 +122,7 @@ Create a file called `config.json` next to your `service.ts` file with the follo | |
Now, let's adjust the `service.ts` file to use the configuration: | ||
|
||
```typescript title="service.ts" | ||
import { startService } from "./lib.ts"; | ||
import { startService } from "https://deno.land/x/telestion/mod.ts"; | ||
import { z } from "https://deno.land/x/[email protected]/mod.ts";// (1)! | ||
|
||
const { config: rawConfig/* (2)! */} = await startService({ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ This tutorial will explain step-by-step how to write a log service that will lis | |
1. First, we need to import the `startService` function from our library (`lib.ts`) and the `encode` function from the standard Deno library. | ||
|
||
```ts | ||
import { startService } from "./lib.ts"; | ||
import { startService } from "https://deno.land/x/telestion/mod.ts"; | ||
import { encode } from "https://deno.land/[email protected]/encoding/hex.ts"; | ||
``` | ||
|
||
|
@@ -66,7 +66,7 @@ And that's it! Our service is now complete and ready to be used. | |
## Final Code | ||
|
||
```ts | ||
import { startService } from "./lib.ts"; | ||
import { startService } from "https://deno.land/x/telestion/mod.ts"; | ||
import { encode } from "https://deno.land/[email protected]/encoding/hex.ts"; | ||
|
||
const encoder = new TextEncoder(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters