aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-08-09 13:56:30 -0700
committerGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-08-09 13:56:30 -0700
commit74b23437085aa3e9141159f240e9a38cebb7a893 (patch)
tree86e9137cd428b7d59a2ea823dd664d4e05d31901
parent39aa9d278fb4209eecd477b674764b9d0c118312 (diff)
downloadbun-nestjs-guide.tar.gz
bun-nestjs-guide.tar.zst
bun-nestjs-guide.zip
Update guidenestjs-guide
-rw-r--r--docs/guides/ecosystem/nestjs.md20
1 files changed, 17 insertions, 3 deletions
diff --git a/docs/guides/ecosystem/nestjs.md b/docs/guides/ecosystem/nestjs.md
index 4bd625d23..f66b92439 100644
--- a/docs/guides/ecosystem/nestjs.md
+++ b/docs/guides/ecosystem/nestjs.md
@@ -35,8 +35,8 @@ CREATE my-app/test/jest-e2e.json (183 bytes)
🚀 Successfully created project my-app
👉 Get started with the following commands:
-$ cd my-app
-$ bun run start
+ $ cd my-app
+ $ bun run start
```
---
@@ -46,8 +46,22 @@ As the Nest.js templater intructed, let's `cd` into our app directory and start
```sh
$ cd my-app
$ bun run start
+ $ nest start
+ [Nest] 35114 - 08/09/2023, 1:51:29 PM LOG [NestFactory] Starting Nest application...
+ [Nest] 35114 - 08/09/2023, 1:51:29 PM LOG [InstanceLoader] AppModule dependencies initialized +5ms
+ [Nest] 35114 - 08/09/2023, 1:51:29 PM LOG [RoutesResolver] AppController {/}: +7ms
+ [Nest] 35114 - 08/09/2023, 1:51:29 PM LOG [RouterExplorer] Mapped {/, GET} route +0ms
+ [Nest] 35114 - 08/09/2023, 1:51:29 PM LOG [NestApplication] Nest application successfully started +1ms
+```
+
+---
+
+To run the server in watch mode. Nest.js does not support hot reloading [out of the box](https://docs.nestjs.com/recipes/hot-reload), but you can run the server in watch mode. This will restart the server when changes are made.
+
+```sh
+$ bun run start:dev
```
---
-Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. Any changes you make to `pages/index.tsx` will be hot-reloaded in the browser.
+Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.