sequenceDiagram
Frontend -->> Cognito: Email, Password でidTokenを取得(※1)
Cognito -->> Frontend: idTokenを返却
Frontend -->> Backend: idTokenを送信
Backend -->> Cognito: idTokenを検証リクエスト
opt 検証エラーの場合
Backend -->> Frontend: エラーを返す
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 利用したダミーAPI | |
| // Graqhql:https://graphqlzero.almansi.me/#example-top | |
| // REST API:https://jsonplaceholder.typicode.com/ | |
| // GraphqlのAPIの叩き方 | |
| const callGql = () => { | |
| const query = `query GetUser($id: ID!) { | |
| user(id: $id) { | |
| id | |
| name |
classDiagram
Animal <|-- Duck
Animal <|-- Fish
Animal <|-- Zebra
Animal : +int age
Animal : +String gender
Animal: +isMammal()
Animal: +mate()
class Duck{
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 他のコンシューマがthis.shopを参照した時に別のコンシューマがセットしたthis.shop を参照しないようにScope.REQUESTに設定 | |
| @Injectable( | |
| { scope: Scope.REQUEST } | |
| ) | |
| export class AuthService { | |
| protected shop: Shop | |
| constructor( | |
| private readonly sessionRepository: SessionRepository, | |
| private readonly shopRepository: ShopRepository |
https://github.com/nounsDAO/nouns-monorepo
1 install packages
$ yarn- 複数企業がデータを共有することで在庫の流動性を最大化する
- トランザクションの機会最大化
- 参考:https://aws.amazon.com/jp/blockchain/
- 参考:メーカー、貿易、広告、、あまりコンソーシアム導入後の経済的メリットについては目にしないような。。
- コンソーシアムチェーンなので、信頼できる参加者をネットワークのノードになるべく非中央集権的に追加する必要がある
- Loom のネットワークを起動
- 1のネットワークにサンプルコントラクトをデプロイ
NewerOlder