Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 5789066

Browse files
update issues with nestjs and oak guides
1 parent 6ed3c0c commit 5789066

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

docs/guides/nodejs/nestjs.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ yarn add uuid
156156
We will define our profiles [key value store](/keyvalue) and a Profile type at the top of our `app.service.ts` file. The key value store will have permissions for getting, setting, and deleting as we will be using all those features for our Profile service.
157157

158158
```typescript title:src/app.service.ts
159+
import { Injectable, NotFoundException } from '@nestjs/common'
159160
import { kv } from '@nitric/sdk'
160161

161162
export interface Profile {
@@ -254,7 +255,7 @@ We then want to add the `http` type to our main function, and pass in the Nest.j
254255
set.
255256
</Note>
256257

257-
```typescript title:src/app.module.ts
258+
```typescript title:src/main.ts
258259
import { http } from '@nitric/sdk'
259260
import { NestFactory } from '@nestjs/core'
260261
import { AppModule } from './app.module'

docs/guides/nodejs/oak.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To complete this guide you'll need the following:
2727
Let's start by setting up a Nitric project:
2828

2929
```bash
30-
nitric new oak-example js-starter
30+
nitric new oak-example ts-starter-deno
3131
```
3232

3333
Then install dependencies and add Oak:
@@ -125,7 +125,14 @@ Your oak application will now be running with Nitric acting as a proxy. We can t
125125

126126
```bash
127127
curl http://localhost:4001/upload/a1b2c3d4e5
128-
{ "url":"http://localhost:51714/write/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9" }
128+
```
129+
130+
It should return an upload URL.
131+
132+
```json
133+
{
134+
"url": "http://localhost:51714/write/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9"
135+
}
129136
```
130137

131138
At this point, we can stop the running application and try to deploy it to a cloud provider.

0 commit comments

Comments
 (0)