Write a README for the sign-in relay

未关闭 适合新手
#39 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
88/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
documentation

调研方向

阅读 apps/relay/src/main.ts 中的头部,并根据 apps/relay/src/config.ts 核对每个环境变量和默认值。创建 apps/relay/README.md,介绍 relay 概况、运行说明、配置和应用内设置路径,然后在 docs/architecture.md 中添加指向该文件的链接。运行 pnpm --filter @hermit/relay test;README 存在、配置一致且架构页面链接到它,即为完成。

由索引模型根据 Issue 内容生成。

描述

agent-friendly docs good first issue

Why

apps/relay is the sign-in relay anyone can host for services that need a client secret (docs/architecture.md). How to run it is only in the header comment of apps/relay/src/main.ts, so people who open the folder on GitHub don't find it.

What to do

  1. Create apps/relay/README.md from the header of apps/relay/src/main.ts (lines 1 to 19): what the relay does and what it never does (it stores nothing), how to run it, every environment variable with its default, and the last step in the app (Settings, Sign-in options, My own relay).
  2. Check each variable and default against apps/relay/src/config.ts, which reads them.
  3. Link the README from the apps/relay row in docs/architecture.md.
  4. Keep the header comment in main.ts, or shorten it to point at the README. The two must not disagree.

Done when

  • apps/relay/README.md exists, and every variable and default in it matches apps/relay/src/config.ts.
  • docs/architecture.md links it.

How to check

pnpm --filter @hermit/relay test

Keep in mind

  • Secrets go in the environment only. Examples use made-up values, like relay.example.org, and never a real secret.
  • Plain words, short sentences, no em or en dashes.
主要语言
TypeScript
星标
11
派生
0
平均合并
10 分钟
30 天内合并 PR
6

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DojoCodingLabs/hermit 的其他 Issue

查看 DojoCodingLabs/hermit 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。