Loading preview…
One-click private deployment after purchase, details Live preview
Preview only — payment is not enabled for this project yet
Content is under review. You can browse the preview and docs, but purchasing/downloading is disabled until the operator enables payment.
Version 1.0.0 Updated 11/26/2026 0 downloads · 0 deployments Manufacturing
商城上传与部署说明
一、包里有什么
apps/web/dist/ 前端构建产物(mock 模式,商城预览用)
apps/api/out/index.js 后端单文件产物
docs/ 交付文档(功能清单 / 技术方案)
Dockerfile 单容器镜像(只跑产物)
docker-compose.yml 本地起服务
intematrix.deploy.json 平台部署清单
.intematrixignore 客户端下载过滤
包里不含 node_modules、本地 data/、真实 .env。
二、上传时填什么
| 字段 | 值 |
|---|---|
| slug | inventoryflow |
| 名称 | 进销存管理系统 |
| 版本号 | 1.0.0 |
| 仓库类型 | web(Web 前端) |
| 产物位置 | apps/web/dist |
| 入口 | apps/api/out/index.js |
| Dockerfile | Dockerfile |
| Compose | docker-compose.yml |
| 端口 | 8080 |
| 技术栈 | React · TypeScript · Tailwind CSS · ElysiaJS · Bun · SQLite · Docker |
三、本地跑起来
docker compose up -d
# 打开 http://localhost:8080
或直接跑产物:
PORT=8080 \
PUBLIC_DIR=./apps/web/dist \
MIGRATIONS_DIR=./apps/api/drizzle \
DATABASE_URL=./data/sqlite.db \
UPLOAD_DIR=./data/uploads \
bun apps/api/out/index.js
四、上线前必做的四件事
- 清空演示数据:商品、往来单位、单据都是示例,交付前删掉
- 导入期初:期初库存 + 往来余额,否则第一次对账就对不上
- 改超管密码:演示密码是公开的(
Admin@123456) - 改应用信息 + 建成员:系统设置 → 应用信息里填品牌名 / Logo 字 / 主色 / 电话 / 备案; 系统设置 → 成员里按岗位开号(每人一串一次性初始密码,本人首次登录必须改密)
五、自检清单
-
apps/web/dist/index.html在包里 -
apps/api/out/index.js非空 - 包内无
node_modules -
intematrix.deploy.json的 port 与 Dockerfile EXPOSE 一致(8080) -
GET /api/health返回 ok,且features含users.members/app.identity.read -
GET /api/app/identity能读到品牌(未登录也能读) - 登录后进工作台;系统设置只有店主能看到
- 建一个成员 → 用初始密码登录落改密页 → 改完进工作台
-
/app/data挂了卷(重启不丢数据,应用信息app-identity.json也在里面) - 跑一遍:建商品 → 采购入库 → 销售出库 → 看库存台账 → 收款核销 → 看对账
六、常见问题
| 现象 | 原因 | 处理 |
|---|---|---|
| 库存对不上 | 有单据未审核就直接查库存 | 只有已审核单据才影响库存 |
| 出库提示库存不足 | 可用库存不足(含占用) | 查占用来源或调整数量 |
| 单据删不掉 | 已审核单据不允许删 | 走红冲,保留流水 |
| 对账余额不对 | 期初没录或录错 | 核对期初建账数据 |
| 登录报密码错 | 数据库是旧的 | 删 data/sqlite.db 重启重新播种 |
| 登录后一直被弹到改密页 | 账号是管理员发的初始密码 | 改完新密码即可;忘记密码让店主在「成员」里重置 |
| 某个岗位登录后工作台是空的 | 该岗位没有业务权限(或还是「普通成员」) | 让店主在「系统设置 → 成员」里换成具体岗位 |
| 改了品牌名没生效 | 缓存或写的是另一份数据目录 | 强刷;确认 app-identity.json 与 sqlite.db 在同一目录 |
| 首页 404 / 白屏 | 打包顺序错了(先 build 再 build:mock) | bun run build:mock 后重打包,check:dist 必须是 mock |
七、一个使用建议
先小额试跑一周:用真实业务跑一段时间,核对库存与往来余额,确认无误再正式切换。进销存系统的历史数据一旦错,后面很难修。
Frequently asked questions
- What do I get after purchase?
- The full source code (web frontend + API backend), deployment documentation and an online preview. After purchase you can download it from "My Projects" and use it for your own product.
- Can it be deployed to my own server?
- The Web + API edition supports one-click private deployment, so data stays on your own infrastructure. Mini-program and App add-on packages are not one-click deployable.
- Can I get a refund?
- Orders whose code package has not been downloaded can request a refund through a support ticket. Once the code package has been downloaded, refunds are not supported.
- How do I reach support?
- Open "My Projects" and click "Support" to submit a ticket. Staff reply inside the ticket, and status changes are pushed as WeChat notifications.
