メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://docs.wyrly.dev/llms.txt

Use this file to discover all available pages before exploring further.

Wyrly のリポジトリには実行可能なサンプルが含まれています。それぞれのサンプルは、1 つのシナリオと 1 つの学習目標に絞っています。

おすすめの学習順

  1. コアサンプルから始める。
  2. グラフ検査と検証を学ぶ。
  3. 自分のフレームワークに合うアダプターへ進む。

コアサンプル

FolderTopicRun
examples/basic-dddtokens、@Injectable、scoped lifetimes、disposaldeno task example:basic-ddd
examples/explicit-depsdecorators なしの explicit register({ deps })deno task example:explicit-deps
examples/provider-patternsuseValueuseFactoryuseExistingdeno task example:provider-patterns
examples/dependency-graphinspect()validate()deno task example:dependency-graph
すべてのコアサンプルを実行する:
deno task examples:core

アダプターサンプル

FolderPackageRun
examples/hono-api@wyrly/honodeno task example:hono-api
examples/express-api@wyrly/expressdeno task example:express-api
examples/graphql-requestscoped DataLoader 付きの @wyrly/graphqldeno task example:graphql-request
examples/express-graphqlExpress and GraphQLdeno task example:express-graphql
examples/fresh-routes@wyrly/freshdeno task example:fresh-routes
examples/next-ddd@wyrly/nextdeno task example:next-ddd
すべてのアダプターサンプルを実行する:
deno task examples:adapters

すべて実行する

deno task examples
Express サンプルには net パーミッションが必要です。

サンプルを composition root の参考にする

サンプルは意図的に小さく作られています。プロバイダーの登録をどこに置くべきか、リクエストスコープをどう作るか、フレームワークのコードからアプリケーションの use case にどう処理を渡すかを確認するために使ってください。