soon530 / nestjs-study

來學一下nestjs吧!
0 stars 0 forks source link

Full-stack app tutorial with NestJS #23

Open soon530 opened 1 year ago

soon530 commented 1 year ago

https://blog.logrocket.com/full-stack-app-tutorial-nestjs-react/

看一下怎麼跟reactjs整合在一起?

soon530 commented 1 year ago

https://github.com/Claradev32/VideoStreamApp 有source code可以直接執行。

就分成frontend跟backend而已。

image
soon530 commented 1 year ago

後端先裝一下套件。

backend % npm install 

(#########⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠋ reify:ajv: sill audit bulk request {

added 803 packages, and audited 804 packages in 9s

84 packages are looking for funding
  run `npm fund` for details

13 vulnerabilities (1 moderate, 9 high, 3 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

跑~

npm run start:dev

跑起來了,沒有出錯。

[11:28:35 AM] Starting compilation in watch mode...

[11:28:36 AM] Found 0 errors. Watching for file changes.

[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [NestFactory] Starting Nest application...
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [InstanceLoader] MongooseModule dependencies initialized +24ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [InstanceLoader] MulterModule dependencies initialized +0ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [InstanceLoader] JwtModule dependencies initialized +0ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [InstanceLoader] ServeStaticModule dependencies initialized +0ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [InstanceLoader] MongooseCoreModule dependencies initialized +10ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [InstanceLoader] MongooseModule dependencies initialized +3ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [InstanceLoader] AppModule dependencies initialized +0ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [RoutesResolver] AppController {/}: +12ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [RouterExplorer] Mapped {/, GET} route +1ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [RoutesResolver] VideoController {/api/v1/video}: +0ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [RouterExplorer] Mapped {/api/v1/video, POST} route +1ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [RouterExplorer] Mapped {/api/v1/video, GET} route +0ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [RouterExplorer] Mapped {/api/v1/video/:id, GET} route +0ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [RouterExplorer] Mapped {/api/v1/video/:id, PUT} route +0ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [RouterExplorer] Mapped {/api/v1/video/:id, DELETE} route +1ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [RoutesResolver] UserController {/api/v1/user}: +0ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [RouterExplorer] Mapped {/api/v1/user/signup, POST} route +0ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [RouterExplorer] Mapped {/api/v1/user/signin, POST} route +0ms
[Nest] 90888  - 11/16/2022, 11:28:36 AM     LOG [NestApplication] Nest application successfully started +1ms