# gb28181_web **Repository Path**: heller_sw/gb28181_web ## Basic Information - **Project Name**: gb28181_web - **Description**: 基于GB28181-2022标准的NVR平台,同时支持 ONVIF/RTMP/RTSP 协议,集成 ZLMediaKit 处理流媒体,开箱即用。未来具备实时本地物体检测功能,适合注重隐私的私有化部署。这是网页版客户端。 - **Primary Language**: TypeScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 6 - **Created**: 2025-11-25 - **Last Updated**: 2025-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
```
## 开发与生成环境区分
`yarn dev` 加载 `.env.development` 环境变量
`yarn build` 加载 `.env.production` 环境变量
### 其它
**drawer 背景动画**
需要使用 DrawerCSSProvider 包裹父组件,动画才生效
**react-resizable-panels**
导入 shadcn-ui 的 resizable ,需要额外执行
`yarn add react-resizable-panels`
vite.config.ts 需要增加以下配置,否则模块加载会出问题
```ts
ssr: {
// 外部化会导致问题的依赖项
noExternal: ["react-resizable-panels"],
},
```
### 部署
Start the development server with HMR:
```bash
npm run dev
```
Your application will be available at `http://localhost:5173`.
## Building for Production
Create a production build:
```bash
npm run build
```
## Deployment
### Docker Deployment
This template includes three Dockerfiles optimized for different package managers:
- `Dockerfile` - for npm
- `Dockerfile.pnpm` - for pnpm
- `Dockerfile.bun` - for bun
To build and run using Docker:
```bash
# For npm
docker build -t my-app .
# For pnpm
docker build -f Dockerfile.pnpm -t my-app .
# For bun
docker build -f Dockerfile.bun -t my-app .
# Run the container
docker run -p 3000:3000 my-app
```
The containerized application can be deployed to any platform that supports Docker,
```