|
| 1 | +## Preface |
| 2 | + |
| 3 | +This project is forked from [alibaba/lowcode-engine](https://github.com/alibaba/lowcode-engine) (v1.3.2 on September 6, 2024). |
| 4 | +Since the original project's version 1 has been determined to no longer have community open source maintenance, and there is no definite plan for version 2. Therefore, this project was born, and it is expected to continue open source maintenance. |
| 5 | +Of course, from now on, related designs will also be completely independent and not related to the design of the original project's version 2. If you expect to continue following the original project's version 2 route in the future, please choose this project carefully. |
| 6 | + |
| 7 | +### Changes in thinking |
| 8 | + |
| 9 | +This project will change some ideas, abandon some peripheral function development, mainly provide core low-code functions, and be a pure low-code kernel. Modules such as workspace will have a lower priority. |
| 10 | +More internal modules will be transferred to plugins (incomplete) and provided as default plugins instead of being encapsulated inside. The overall development direction is shifting towards a more open one. |
| 11 | +At the same time, for each sub-module, more interfaces will be opened through the shell module to support more customized needs. |
| 12 | +Finally, the toolchain will be upgraded as appropriate. It is planned to switch to a newer packaging tool, etc., but the priority will be relatively low. |
| 13 | + |
| 14 | +### Plans |
| 15 | + |
| 16 | +Currently, the project has just been forked. The main work is to replace the namespace. To avoid naming conflicts with the original project, the namespace of this repository is adjusted to `@felce`, which is taken from the abbreviation of lowcode-engine. |
| 17 | +Current main tasks: |
| 18 | + |
| 19 | +- Adjust the namespace of the main project. |
| 20 | +- Fix backlogged issues. |
| 21 | + |
| 22 | +<h1 align="center">LowCodeEngine</h1> |
| 23 | + |
| 24 | +<div align="center"> |
| 25 | + |
| 26 | +An enterprise-class low-code technology stack with scale-out design |
| 27 | + |
| 28 | +[![NPM version][npm-image]][npm-url] [![NPM downloads][download-image]][download-url] |
| 29 | + |
| 30 | +[![][issues-helper-image]][issues-helper-url] [![Issues need help][help-wanted-image]][help-wanted-url] |
| 31 | + |
| 32 | +[![codecov][codecov-image-url]][codecov-url] [](https://github.com/lowcode-workspace/awesome-lowcode-engine) |
| 33 | + |
| 34 | +[npm-image]: https://img.shields.io/npm/v/@felce/lowcode-engine.svg?style=flat-square |
| 35 | +[npm-url]: http://npmjs.org/package/@felce/lowcode-engine |
| 36 | +[download-image]: https://img.shields.io/npm/dm/@felce/lowcode-engine.svg?style=flat-square |
| 37 | +[download-url]: https://npmjs.org/package/@felce/lowcode-engine |
| 38 | +[help-wanted-image]: https://flat.badgen.net/github/label-issues/fe-lce/lowcode-engine/help%20wanted/open |
| 39 | +[help-wanted-url]: https://github.com/fe-lce/lowcode-engine/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22 |
| 40 | +[issues-helper-image]: https://img.shields.io/badge/using-issues--helper-orange?style=flat-square |
| 41 | +[issues-helper-url]: https://github.com/actions-cool/issues-helper |
| 42 | +[codecov-image-url]: https://codecov.io/gh/fe-lce/lowcode-engine/branch/main/graph/badge.svg |
| 43 | +[codecov-url]: https://codecov.io/gh/fe-lce/lowcode-engine |
| 44 | + |
| 45 | +</div> |
| 46 | + |
| 47 | +[](http://lowcode-engine.cn) |
| 48 | + |
| 49 | +English | [简体中文](./packages/engine/README-zh_CN.md) |
| 50 | + |
| 51 | +## ✨ Features |
| 52 | + |
| 53 | +- 🌈 An extension-oriented kernel engine extracted from an enterprise-level low-code platform, pursuing the design concept of the smallest kernel and the strongest ecology |
| 54 | +- 📦 Out-of-the-box high-quality ecological elements, including material systems, setters, plugins, etc. |
| 55 | +- ⚙️ A complete tool chain, supporting the full-link R&D cycle of ecological elements such as material systems, setters, and plug-ins |
| 56 | +- 🔌 Powerful expansion capability, has supported nearly 100 various vertical low-code platforms |
| 57 | +- 🛡 Developed with TypeScript, providing complete type definition files |
| 58 | + |
| 59 | +## 🎯 Compatible Environments |
| 60 | + |
| 61 | +- Modern browsers (Chrome >= 80, Edge >= 80, last 2 safari versions, last 2 firefox versions) |
| 62 | + |
| 63 | +## 📚 Engine Protocol |
| 64 | + |
| 65 | +The engine fully implements the "LowCodeEngine Basic Construction Protocol Specification" and "LowCodeEngine Material Protocol Specification". The protocol stack is a key part of whether materials in the low-code field can be circulated. |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | +## 🌰 Usage example |
| 70 | + |
| 71 | +```bash |
| 72 | +npm install @felce/lowcode-engine --save-dev |
| 73 | +``` |
| 74 | + |
| 75 | +> **TIPS: Only cdn import is supported, npm package is used to provide code hinting capabilities such as typings** |
| 76 | +
|
| 77 | +```ts |
| 78 | +import { init, skeleton } from '@felce/lowcode-engine'; |
| 79 | + |
| 80 | +skeleton.add({ |
| 81 | + area: 'topArea', |
| 82 | + type: 'Widget', |
| 83 | + name: 'logo', |
| 84 | + content: YourFantasticLogo, |
| 85 | + contentProps: { |
| 86 | + logo: 'https://img.alicdn.com/tfs/TB1_SocGkT2gK0jSZFkXXcIQFXa-66-66.png', |
| 87 | + href: '/', |
| 88 | + }, |
| 89 | + props: { |
| 90 | + align: 'left', |
| 91 | + width: 100, |
| 92 | + }, |
| 93 | +}); |
| 94 | + |
| 95 | +init(document.getElementById('lce')); |
| 96 | +``` |
| 97 | + |
| 98 | +### Engineering configuration: |
| 99 | + |
| 100 | +```json |
| 101 | +{ |
| 102 | + "externals": { |
| 103 | + "@felce/lowcode-engine": "var window.AliLowCodeEngine", |
| 104 | + "@alilc/lowcode-engine-ext": "var window.AliLowCodeEngineExt" |
| 105 | + } |
| 106 | +} |
| 107 | +``` |
| 108 | + |
| 109 | +### cdn optional method: |
| 110 | + |
| 111 | +#### unpkg |
| 112 | + |
| 113 | +```html |
| 114 | +https://unpkg.com/@felce/lowcode-engine@1.4.0-beta.0/dist/js/engine-core.js |
| 115 | +https://unpkg.com/@felce/lowcode-react-simulator-renderer@1.4.0-beta.0/dist/js/react-simulator-renderer.js |
| 116 | +``` |
| 117 | + |
| 118 | +#### npmmirror |
| 119 | + |
| 120 | +```html |
| 121 | +https://registry.npmmirror.com/@felce/lowcode-engine/1.4.0-beta.0/files/dist/js/engine-core.js |
| 122 | +https://registry.npmmirror.com/@felce/lowcode-react-simulator-renderer/1.4.0-beta.0/files/dist/js/react-simulator-renderer.js |
| 123 | +``` |
| 124 | + |
| 125 | +#### jsdelivr |
| 126 | + |
| 127 | +```html |
| 128 | +https://cdn.jsdelivr.net/npm/@felce/lowcode-engine@1.4.0-beta.0/dist/js/engine-core.js |
| 129 | +https://cdn.jsdelivr.net/npm/@felce/lowcode-react-simulator-renderer@1.4.0-beta.0/dist/js/react-simulator-renderer.js |
| 130 | +``` |
| 131 | + |
| 132 | +#### Method 5: Use your own cdn |
| 133 | + |
| 134 | +Pass the files under packages/engine/dist and packages/react-simulator-renderer/dist in the source code to your cdn provider |
| 135 | + |
| 136 | +## 🔗 Related Links |
| 137 | + |
| 138 | +- [Official website home page](http://lowcode-engine.cn/) |
| 139 | +- [Demo Play Now](http://lowcode-engine.cn/demo) | [Engine Demo Repository](https://github.com/fe-lce/lowcode-demo) |
| 140 | +- [Official Materials](https://github.com/fe-lce/lowcode-materials) |
| 141 | +- [official setter](https://github.com/fe-lce/lowcode-engine-ext) |
| 142 | +- [Official plugin (plugin)](https://github.com/fe-lce/lowcode-plugins) |
| 143 | +- [Ecological elements (materials, setters, plugins) toolchain](https://lowcode-engine.cn/site/docs/guide/expand/editor/cli) |
| 144 | +- [User Documentation](http://lowcode-engine.cn/doc) |
| 145 | +- [API](https://lowcode-engine.cn/site/docs/api/) |
| 146 | + |
| 147 | +This [awesome-lowcode-engine](https://github.com/lowcode-workspace/awesome-lowcode-engine) page links to a repository which records all of the tools\materials\solutions that use or built for the lowcode-engine, PR is welcomed. |
| 148 | + |
| 149 | +## 💻 Local debugging |
| 150 | + |
| 151 | +```bash |
| 152 | +$ git clone git@github.com:fe-lce/lowcode-engine.git |
| 153 | +$ cd lowcode-engine |
| 154 | +$ npm install |
| 155 | +$ npm run setup |
| 156 | +$ npm start |
| 157 | +``` |
| 158 | + |
| 159 | +> 📢 npm access speed is slow, Alibaba employees can use tnpm, other students recommend using cnpm or specifying a mirror registry. |
| 160 | +> |
| 161 | +> 📢 Windows environment must use [WSL](https://docs.microsoft.com/en-us/windows/wsl/install), other terminals are not guaranteed to work normally |
| 162 | +
|
| 163 | +After lowcode-engine is started, several umd files are provided, which can be debugged in combination with the [lowcode-demo](https://github.com/fe-lce/lowcode-demo) project. Refer to the file proxy rules [here](https://lowcode-engine.cn/site/docs/participate/prepare). |
| 164 | + |
| 165 | +## 🤝 Participation |
| 166 | + |
| 167 | +Please read first: |
| 168 | + |
| 169 | +1. [How to configure the engine debugging environment? ](https://lowcode-engine.cn/site/docs/participate/prepare) |
| 170 | +2. [About the R&D collaboration process of the engine](https://lowcode-engine.cn/site/docs/participate/flow) |
| 171 | +3. [Engineering Configuration of Engine](https://lowcode-engine.cn/site/docs/participate/config) |
| 172 | + |
| 173 | +> Strongly recommend reading ["The Wisdom of Asking Questions"](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way), ["How to Ask Questions to the Open Source Community"](https: //github.com/seajs/seajs/issues/545) and [How to Report Bugs Effectively](http://www.chiark.greenend.org.uk/%7Esgtatham/bugs-cn.html), [ "How to Submit Unanswerable Questions to Open Source Projects"](https://zhuanlan.zhihu.com/p/25795393), better questions are easier to get help. (This paragraph refers to [antd](https://github.com/ant-design/ant-design)) |
| 174 | +
|
| 175 | +About Pull Request: |
| 176 | + |
| 177 | +- set the target branch to **develop** other than **main** |
| 178 | + |
| 179 | +## ❤️ Contributors |
| 180 | + |
| 181 | +Special thanks to everyone who contributed to this project. |
| 182 | + |
| 183 | +<p> |
| 184 | +<a href="https://github.com/fe-lce/lowcode-engine/graphs/contributors"><img src="https://contrib.rocks/image?repo=fe-lce/lowcode-engine" /></a> |
| 185 | +</p> |
0 commit comments