Skip to content

AngularとNest.jsを利用したSSR/BFFのテスト用プロジェクト

Notifications You must be signed in to change notification settings

uc4w6c/nx-ng-nest-universal

Repository files navigation

AngularとNest.jsを利用したSSR/BFFのテスト用プロジェクト https://github.com/servrox/nx-ng-nest-universalをcloneした。

npm run serve

・clientのcomponent作成 nx-ng-nest-universal/apps/ng-test-app/src/appで、 ng generate component heroes --module=app.module.ts

進捗メモ ・2019/10/28 app.module.tsからRouterModuleを削除することでRoutingが動いた が、サーバ・クライアントそれぞれでレンダリングしているようにみえる

・2019/10/30 SSR側の処理を待たずに次に進む理由がここにありそう でもエラーになったから無理だった。。。 https://www.reddit.com/r/angular/comments/aep5dz/angular_universal_server_side_rendering_with_http/

npm install @gorniv/ngx-transfer-http --save npm install @gorniv/ngx-universal --save をやってみた。transfer-httpは間違えた。違いはわからん。。。

ここかも https://angular.io/api/router/Resolve

あーhttpClientを利用していないのがいけないかも

色々参考 ・ここいいかも https://github.com/kamilmysliwiec/universal-nest

・universalガイド https://angular.io/guide/universal

websocket https://qiita.com/cilly/items/833bc20784b0a7d56d03

・以下エラーの対応 RangeError: Maximum call stack size exceeded https://stackoverflow.com/questions/27376522/node-js-socket-io-maximum-call-stack-size-exceeded

・以下エラーの対応 @MessageBody()をつけると is not functionが出力し起動しない https://github.com/nestjs/nest/issues/3127?ref=dtf.ru

対応方法 ・handlerの中でproxy設定すればいけるか? これかな? import * as serverless from 'aws-serverless-express'; serverless.proxy(server, event, context);

About

AngularとNest.jsを利用したSSR/BFFのテスト用プロジェクト

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages