diff options
author | 2023-08-09 13:49:23 -0700 | |
---|---|---|
committer | 2023-08-09 13:49:23 -0700 | |
commit | 39aa9d278fb4209eecd477b674764b9d0c118312 (patch) | |
tree | e78697be211c6793900f495dd092f9814bf6d831 /docs/guides/ecosystem/nestjs.md | |
parent | 883c4d8778b9fc0deca5b37f7a1b5c145edf957f (diff) | |
download | bun-39aa9d278fb4209eecd477b674764b9d0c118312.tar.gz bun-39aa9d278fb4209eecd477b674764b9d0c118312.tar.zst bun-39aa9d278fb4209eecd477b674764b9d0c118312.zip |
Add Nest.js guide
Diffstat (limited to 'docs/guides/ecosystem/nestjs.md')
-rw-r--r-- | docs/guides/ecosystem/nestjs.md | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/docs/guides/ecosystem/nestjs.md b/docs/guides/ecosystem/nestjs.md new file mode 100644 index 000000000..4bd625d23 --- /dev/null +++ b/docs/guides/ecosystem/nestjs.md @@ -0,0 +1,53 @@ +--- +name: Build a fullstack app with Nest.js and Bun +--- + +{% callout %} +Requires Bun `v0.7.0` or later. +{% /callout %} + +--- + +Initialize your app with the Nest.js CLI. + +```sh +$ bunx @nestjs/cli new my-app +⚡ We will scaffold your app in a few seconds.. + +? Which package manager would you ❤️ to use? bun +CREATE my-app/.eslintrc.js (663 bytes) +CREATE my-app/.prettierrc (51 bytes) +CREATE my-app/README.md (3347 bytes) +CREATE my-app/nest-cli.json (171 bytes) +CREATE my-app/package.json (1947 bytes) +CREATE my-app/tsconfig.build.json (97 bytes) +CREATE my-app/tsconfig.json (546 bytes) +CREATE my-app/src/app.controller.spec.ts (617 bytes) +CREATE my-app/src/app.controller.ts (274 bytes) +CREATE my-app/src/app.module.ts (249 bytes) +CREATE my-app/src/app.service.ts (142 bytes) +CREATE my-app/src/main.ts (208 bytes) +CREATE my-app/test/app.e2e-spec.ts (630 bytes) +CREATE my-app/test/jest-e2e.json (183 bytes) + +✔ Installation in progress... ☕ + +🚀 Successfully created project my-app +👉 Get started with the following commands: + +$ cd my-app +$ bun run start +``` + +--- + +As the Nest.js templater intructed, let's `cd` into our app directory and start the development server. + +```sh +$ cd my-app +$ bun run start +``` + +--- + +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. |