2023-09-25 18:11:29 +08:00
|
|
|
|
<p align="center">
|
|
|
|
|
<a href="https://opentiny.design/tiny-engine" target="_blank" rel="noopener noreferrer">
|
|
|
|
|
<img alt="OpenTiny Logo" src="logo.svg" height="100" style="max-width:100%;">
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p align="center">TinyEngine低代码引擎使能开发者定制低代码平台,支持在线实时构建低码平台,支持二次开发或集成低码平台能力</p>
|
|
|
|
|
|
|
|
|
|
[English](README.md) | 简体中文
|
|
|
|
|
|
|
|
|
|
🌈 特性:
|
|
|
|
|
|
|
|
|
|
- 跨端跨框架前端组件
|
|
|
|
|
- 支持在线实时构建、支持二次开发或被集成
|
|
|
|
|
- 直接生成可部署的源码,运行时无需引擎支撑
|
|
|
|
|
- 允许接入第三方组件、允许定制扩展插件
|
|
|
|
|
- 支持高代码与低代码,混合开发部署应用
|
|
|
|
|
- 平台接入 AI 大模型能力,辅助开发者构建应用
|
|
|
|
|
|
2023-11-09 14:11:58 +08:00
|
|
|
|
## 文档
|
|
|
|
|
|
|
|
|
|
- 介绍:https://opentiny.design/tiny-engine#/home
|
|
|
|
|
- 使用文档:https://opentiny.design/tiny-engine#/help-center/course/engine
|
|
|
|
|
- 演示应用:https://opentiny.design/tiny-engine#/tiny-engine-editor
|
|
|
|
|
|
2023-09-25 18:11:29 +08:00
|
|
|
|
## 开发
|
|
|
|
|
|
|
|
|
|
### 安装所需的依赖
|
|
|
|
|
|
|
|
|
|
```sh
|
2023-09-29 11:17:46 +08:00
|
|
|
|
$ pnpm install
|
2023-09-25 18:11:29 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 本地开发,启动本地 mock 服务器,使用本地 mock 服务器的 mock 数据
|
|
|
|
|
|
|
|
|
|
```sh
|
2023-09-29 11:17:46 +08:00
|
|
|
|
$ pnpm dev
|
2023-09-25 18:11:29 +08:00
|
|
|
|
```
|
|
|
|
|
|
2023-12-29 16:51:27 +08:00
|
|
|
|
### 本地开发,直连本地的tiny-engine-webservice服务端
|
|
|
|
|
|
|
|
|
|
1. 启动 <a href="https://github.com/opentiny/tiny-engine-data-center/blob/main/README.md" target="_blank">tiny-engine-data-center</a>
|
|
|
|
|
|
|
|
|
|
2. 启动 <a href="https://github.com/opentiny/tiny-engine-webservice/blob/main/README.md" target="_blank">tiny-engine-webservice</a>
|
|
|
|
|
|
|
|
|
|
3. 修改 tiny-engine 项目 `packages/design-core/` 目录下 `vite.config.js` 中origin的值为自己本地webService项目的地址端口(webService端口默认为7011),如:
|
|
|
|
|
|
|
|
|
|
<img alt="修改端口" src="https://res.hc-cdn.com/lowcode-portal/1.1.55/img/docimg/backend_deploy_5.png">
|
|
|
|
|
|
|
|
|
|
|
2023-12-29 16:21:43 +08:00
|
|
|
|
### 物料同步[方案](https://opentiny.design/tiny-engine#/help-center/course/engine/56)
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ pnpm splitMaterials
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
$ pnpm buildMaterials
|
|
|
|
|
```
|
|
|
|
|
|
2023-09-25 18:11:29 +08:00
|
|
|
|
浏览器打开:`http://localhost:8080/?type=app&id=918&tenant=1&pageid=NTJ4MjvqoVj8OVsc`
|
|
|
|
|
`url search`参数:
|
|
|
|
|
|
|
|
|
|
- `type=app` 应用类型
|
|
|
|
|
- `id=xxx` 应用 ID
|
|
|
|
|
- `tenant=xxx` 组织 ID
|
2023-09-29 11:17:46 +08:00
|
|
|
|
- `pageid=xxx` 页面 ID
|
2023-09-25 18:11:29 +08:00
|
|
|
|
|
|
|
|
|
## 构建
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
# 先构建所有插件
|
2023-09-29 11:17:46 +08:00
|
|
|
|
pnpm run build:plugin
|
2023-09-25 18:11:29 +08:00
|
|
|
|
|
|
|
|
|
# 构建设计器
|
2023-09-29 11:17:46 +08:00
|
|
|
|
pnpm run build:alpha 或 build:prod
|
2023-09-25 18:11:29 +08:00
|
|
|
|
|
|
|
|
|
```
|
2024-04-07 10:14:12 +08:00
|
|
|
|
构建后产物所在文件夹
|
|
|
|
|
```
|
|
|
|
|
tiny-engine/packages/design-core/dist/
|
|
|
|
|
```
|
2023-09-25 18:11:29 +08:00
|
|
|
|
|
2023-11-03 11:19:09 +08:00
|
|
|
|
## 里程碑
|
|
|
|
|
|
|
|
|
|
```mermaid
|
2024-08-07 09:42:28 +08:00
|
|
|
|
gantt
|
2023-11-03 11:19:09 +08:00
|
|
|
|
dateFormat YYYY-MM-DD
|
|
|
|
|
axisFormat %Y-%m-%d
|
|
|
|
|
|
2024-08-07 09:42:28 +08:00
|
|
|
|
1.0.0-beta.x version : 2023-09-25, 2024-05-20
|
|
|
|
|
1.0.0-rc version(refactor version) : 2024-10-01
|
|
|
|
|
1.0.0 version : 2024-11-01
|
2023-11-03 11:19:09 +08:00
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
2023-09-25 18:11:29 +08:00
|
|
|
|
## 🤝 参与贡献
|
|
|
|
|
|
|
|
|
|
如果你对我们的开源项目感兴趣,欢迎加入我们!🎉
|
|
|
|
|
|
|
|
|
|
参与贡献之前请先阅读[贡献指南](CONTRIBUTING.zh-CN.md)。
|
|
|
|
|
|
|
|
|
|
- 添加官方小助手微信 opentiny-official,加入技术交流群
|
|
|
|
|
- 加入邮件列表 opentiny@googlegroups.com
|
|
|
|
|
|
|
|
|
|
## 开源协议
|
|
|
|
|
|
|
|
|
|
[MIT](LICENSE)
|