Files
im_webapp/README.md
T

40 lines
816 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 迅工捷使 Web
当前前端位于 `web/`,技术栈为 React、TypeScript 和 Vite。仓库根目录不再保留旧版 Tinode Webpack 应用及其构建产物。
## 本地开发
```bash
cd web
npm ci
npm run dev
```
## 检查与构建
```bash
cd web
node --test tests/*.test.mjs tests/*.test.ts
npm run lint
npm run build
```
生产构建输出到 `web/dist/`。
## Docker 部署
根目录 `Dockerfile` 只复制并构建 `web/`:
```bash
docker build --build-arg TINODE_API_KEY="<部署密钥>" -t im-webapp .
```
测试集群通过 Gitea Actions 的 `Deploy im-webapp (k3s test cluster)` 工作流手动发布。
## 目录
- `web/`:当前 Vite 前端源码、测试和静态资源
- `docker/`:Nginx 配置
- `docs/`:设计及实施文档
- `.gitea/workflows/`:测试集群部署工作流