<div class="markdown-heading" dir="auto"><h1 align="center" tabindex="-1" class="heading-element" dir="auto"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">暴风雨</font></font></h1><a id="user-content-highstorm" class="anchor" aria-label="永久链接:Highstorm" href="#highstorm"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
<div class="markdown-heading" dir="auto"><h5 tabindex="-1" class="heading-element" dir="auto"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">开源事件监控</font></font></h5><a id="user-content-open-source-event-monitoring" class="anchor" aria-label="永久链接:开源事件监控" href="#open-source-event-monitoring"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg></a></div>
感谢您考虑为我们的开源项目做出贡献!我们感谢您的关注,并很高兴您能加入我们。本文档概述了您需要遵循的步骤,以便有效地为项目做出贡献。请仔细阅读指南,如果您有任何问题,请随时与我们联系。
在开始之前,请确保您已设置以下第三方服务:
- planetscale:数据库
- tinybird:时间序列数据库
- upstash:可选,仅报告需要
- 办事员:认证
要安装项目及其依赖项,请按照以下步骤操作:
-
确保已
pnpm
在系统上安装。如果没有,您可以通过运行以下命令进行安装:npm install -g pnpm
-
运行以下命令安装项目依赖项:
pnpm install
设置所需的服务后,需要在文件中设置相应的环境变量/apps/web/.env
。为此,请按照下列步骤操作:
- 复制该
.env.example
文件:cp apps/web/.env.example apps/web/.env
- 在文本编辑器中打开该
/apps/web/.env
文件并填充上述服务的值。
要准备 Prisma 数据库,请按照以下步骤操作:
- 导航到
/apps/web
目录:cd apps/web
- 运行以下命令来推送数据库模式并生成 Prisma Client:
npx prisma db push
要准备 Tinybird 数据库,请按照以下步骤操作:
- 从这里下载 Tinybird CLI并将其安装到您的系统上。
- 通过 Tinybird CLI 进行身份验证后,导航到以下
/apps/web/lib/tinybird
目录:cd apps/web/lib/tinybird
- 使用以下命令推送必要的数据源:
tb push datasources/ tb push
注意:如果未设置 CLERK_WEBHOOK_SECRET 环境变量,请传递一个空字符串,并确保/onboarding
注册后访问。
要构建项目,请执行以下命令:
pnpm build
要在本地运行项目,请使用以下命令:
pnpm turbo run dev --filter=web